\Pop\ControllerControllerInterface

Pop controller interface

Summary

Methods
Constants
setDefaultAction()
getDefaultAction()
dispatch()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setDefaultAction()

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

Set the default action

Parameters

string $default

Returns

\Pop\Controller\ControllerInterface

getDefaultAction()

getDefaultAction() : string

Get the default action

Returns

string

dispatch()

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

Dispatch the controller based on the action

Parameters

string $action
array $params

Throws

\Pop\Controller\Exception