SproutCMS

This is the code documentation for the SproutCMS project

function adminControllers()

Registers a module's shorthand controller names for the admin controller

Usage

void Register::adminControllers ( string $namespace , array $controllers );

Arguments

  1. string $namespace
    namespace including both developer and module
           name but not 'Controllers' segment, e.g. Karmabunny\HomePage\Admin
  2. array $controllers
    map of lowercased shorthand names to class
           names within the specified namespace, e.g. ['home' => 'Admin\HomePageAdminController']

Return value

  • void