SproutCMS

This is the code documentation for the SproutCMS project

function frontEndController()

Register a front-end controller (also called a tool page)

Usage

void Register::frontEndController ( string $name , string $label );

Arguments

  1. string $name
    Fully namespaced class name of Controller which MUST implement FrontEndEntrance,
           e.g. 'SproutModules\\Karmabunny\\Users\\Controllers\\UserController'
  2. string $label
    Human-readable short name, e.g. 'Users'

Exceptions thrown

  • InvalidArgumentException
    If controller doesn't implement FrontEndEntrance

Return value

  • void