Controller

Extends \Ascmvc\AbstractController Implements \Ascmvc\AscmvcEventManagerListenerInterface

Class Controller

The Controller class extends the AbstractController and implements the AscmvcEventManagerListenerInterface.

package

LightMVC/ASCMVC

Methods

Initializes this class by assigning the objects and arrays contained in the referenced application object to the corresponding properties.

__construct(array $baseConfig, \Ascmvc\EventSourcing\EventDispatcher $eventDispatcher) 
inherited abstract

Arguments

$baseConfig

array

Method corresponding to the controller's default action.

indexAction(null $vars = null) : mixed|void
inherited abstract

Arguments

$vars

null

Response

mixed|void

OnBootstrap listener method.

onBootstrap(\Ascmvc\Mvc\AscmvcEvent $event) : mixed|void
static

Arguments

Response

mixed|void

OnDispatch listener method.

onDispatch(\Ascmvc\Mvc\AscmvcEvent $event) : mixed|void

Arguments

Response

mixed|void

OnFinish listener method.

onFinish(\Ascmvc\Mvc\AscmvcEvent $event) : mixed|void

Arguments

Response

mixed|void

OnRender listener method.

onRender(\Ascmvc\Mvc\AscmvcEvent $event) : mixed|void

Arguments

Response

mixed|void

Properties