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) 
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

Contains a reference to the array containing some of the app's basic configurations useful to controllers.

baseConfig : array|null
inherited
var

Type(s)

array|null

Array contains all of the values that will be assigned to the View manager's template.

view : array|null
inherited
var

Type(s)

array|null

Array contains the controller's helper objects.

helpers : array|null
inherited
var

Type(s)

array|null