AbstractController

The abstract AbstractController class is the blueprint for the MVC's controllers.

Description The AbstractController class is the one that needs to be extended in order to create a LightMVC controller.

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) : void
abstract

Arguments

$baseConfig

array

Method corresponding to the controller's default action.

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

Arguments

$vars

null

Response

mixed|void

Properties

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

baseConfig : array|null
var

Type(s)

array|null

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

view : array|null
var

Type(s)

array|null

Array contains the controller's helper objects.

helpers : array|null
var

Type(s)

array|null