Documentation

AppController extends Controller
in package

Application Controller

Add your application-wide methods in the class below, your controllers will inherit them.

Tags
link
https://book.cakephp.org/5/en/controllers.html#the-app-controller

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');


        
On this page

Search results