SproutCMS

This is the code documentation for the SproutCMS project

function getController()

Returns an instance of a controller class for a given type

Usage

This function is deprecated
This function is now just an alias for Admin::getController

Arguments

  1. string $type
    A class name, or shorthand identifier
           e.g. 'Sprout\Controllers\AwesomeController' or 'awesome'

Exceptions thrown

  • Exception
    If the class is unknown

Return value