PHP Class App\Controller\AppController

Add your application-wide methods in the class below, your controllers will inherit them.
Inheritance: extends Cake\Controller\Controller
Show file Open project: cakephp/app Class Usage Examples

Public Methods

Method Description
beforeRender ( Cake\Event\Event $event ) : Response | null | void Before render callback.
initialize ( ) : void Initialization hook method.

Method Details

beforeRender() public method

Before render callback.
public beforeRender ( Cake\Event\Event $event ) : Response | null | void
$event Cake\Event\Event The beforeRender event.
return Cake\Network\Response | null | void

initialize() public method

Use this method to add common initialization code like loading components. e.g. $this->loadComponent('Security');
public initialize ( ) : void
return void