mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding some documentation about component callbacks.
This commit is contained in:
parent
30589e2cdf
commit
273a189e98
1 changed files with 12 additions and 0 deletions
|
@ -23,6 +23,18 @@ App::import('Controller', 'ComponentCollection', false);
|
|||
* controller logic that can be composed into a controller. Components also
|
||||
* provide request life-cycle callbacks for injecting logic at specific points.
|
||||
*
|
||||
* ## Life cycle callbacks
|
||||
*
|
||||
* Components can provide several callbacks that are fired at various stages of the request
|
||||
* cycle. The available callbacks are:
|
||||
*
|
||||
* - `initialize()` - Fired before the controller's beforeFilter method.
|
||||
* - `startup()` - Fired after the controller's beforeFilter method.
|
||||
* - `beforeRender()` - Fired before the view + layout are rendered.
|
||||
* - `shutdown()` - Fired after the action is complete and the view has been rendered
|
||||
* but before Controller::afterFilter().
|
||||
* - `beforeRedirect()` - Fired before a redirect() is done.
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.controller
|
||||
* @link http://book.cakephp.org/view/993/Components
|
||||
|
|
Loading…
Reference in a new issue