PHP Class App\Controller\AppController

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

Méthodes publiques

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

Method Details

beforeRender() public méthode

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

initialize() public méthode

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