AbstractController
in package
implements
ControllerInterface
Pop abstract controller class
Tags
Interfaces, Classes, Traits and Enums
- ControllerInterface
- Pop controller interface
Table of Contents
- $defaultAction : string
- Default action
- dispatch() : void
- Dispatch the controller based on the action
- getDefaultAction() : string
- Get the default action
- setDefaultAction() : AbstractController
- Set the default action
Properties
$defaultAction
Default action
protected
string
$defaultAction
= 'error'
Methods
dispatch()
Dispatch the controller based on the action
public
dispatch([string $action = null ][, array<string|int, mixed> $params = null ]) : void
Parameters
- $action : string = null
- $params : array<string|int, mixed> = null
Tags
Return values
void —getDefaultAction()
Get the default action
public
getDefaultAction() : string
Return values
string —setDefaultAction()
Set the default action
public
setDefaultAction(string $default) : AbstractController
Parameters
- $default : string