\Pop\ControllerAbstractController

Pop abstract controller class

Summary

Methods
Properties
Constants
setDefaultAction()
getDefaultAction()
dispatch()
No public properties found
No constants found
No protected methods found
$defaultAction
N/A
No private methods found
No private properties found
N/A

Properties

$defaultAction

$defaultAction : string

Default action

Type

string

Methods

setDefaultAction()

setDefaultAction(string  $default) : \Pop\Controller\AbstractController

Set the default action

Parameters

string $default

Returns

\Pop\Controller\AbstractController

getDefaultAction()

getDefaultAction() : string

Get the default action

Returns

string

dispatch()

dispatch(string  $action = null, array  $params = null) : void

Dispatch the controller based on the action

Parameters

string $action
array $params

Throws

\Pop\Controller\Exception