AppController
extends Controller
in package
Application Controller
Add your application-wide methods in the class below, your controllers will inherit them.
Tags
Table of Contents
Methods
- beforeRender() : mixed
- initialize() : void
- Initialization hook method.
Methods
beforeRender()
public
beforeRender(EventInterface $event) : mixed
Parameters
- $event : EventInterface
initialize()
Initialization hook method.
public
initialize() : void
Use this method to add common initialization code like loading components.
e.g. $this->loadComponent('FormProtection');