Skip to content
Permalink
Browse files

Adding some documentation about component callbacks.

  • Loading branch information...
markstory committed Sep 15, 2010
1 parent 30589e2 commit 273a189e98bdbc13a7d6af0f109752cb65d2239c
Showing with 12 additions and 0 deletions.
  1. +12 −0 cake/libs/controller/component.php
@@ -23,6 +23,18 @@
* 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

0 comments on commit 273a189

Please sign in to comment.
You can’t perform that action at this time.