SproutCMS

This is the code documentation for the SproutCMS project

function getController()

Gets an instance of a managed admin controller

Usage

ManagedAdminController Admin::getController ( string $class_name );

Arguments

  1. string $class_name
    A class name, or shorthand identifier
           e.g. 'Sprout\Controllers\Admin\AwesomeAdminController' or 'awesome'

Exceptions thrown

  • Exception
    If the class is unknown

Return value