mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 10:36:16 +00:00
Updated documentation
This commit is contained in:
parent
2b596859cb
commit
39e06b0425
3 changed files with 9 additions and 9 deletions
|
@ -58,11 +58,11 @@ class ComponentCollection extends ObjectCollection {
|
|||
* You can use `$settings['enabled'] = false` to disable callbacks on a component when loading it.
|
||||
* Callbacks default to on. Disabled component methods work as normal, only callbacks are disabled.
|
||||
*
|
||||
* You can alias your component as an existing component by setting the 'alias' key, i.e.,
|
||||
* You can alias your component as an existing component by setting the 'className' key, i.e.,
|
||||
* {{{
|
||||
* public $components = array(
|
||||
* 'AliasedEmail' => array(
|
||||
* 'alias' => 'Email'
|
||||
* 'Email' => array(
|
||||
* 'className' => 'AliasedEmail'
|
||||
* );
|
||||
* );
|
||||
* }}}
|
||||
|
|
|
@ -83,11 +83,11 @@ class BehaviorCollection extends ObjectCollection {
|
|||
* to load a behavior with callbacks disabled. By default callbacks are enabled. Disable behaviors
|
||||
* can still be used as normal.
|
||||
*
|
||||
* You can alias your behavior as an existing behavior by setting the 'alias' key, i.e.,
|
||||
* You can alias your behavior as an existing behavior by setting the 'className' key, i.e.,
|
||||
* {{{
|
||||
* public $actsAs = array(
|
||||
* 'AliasedTree' => array(
|
||||
* 'alias' => 'Tree'
|
||||
* 'Tree' => array(
|
||||
* 'className' => 'AliasedTree'
|
||||
* );
|
||||
* );
|
||||
* }}}
|
||||
|
|
|
@ -41,11 +41,11 @@ class HelperCollection extends ObjectCollection {
|
|||
* can set `$settings['enabled'] = false` to disable callbacks. This alias is provided so that when
|
||||
* declaring $helpers arrays you can disable callbacks on helpers.
|
||||
*
|
||||
* You can alias your helper as an existing helper by setting the 'alias' key, i.e.,
|
||||
* You can alias your helper as an existing helper by setting the 'className' key, i.e.,
|
||||
* {{{
|
||||
* public $components = array(
|
||||
* 'AliasedHtml' => array(
|
||||
* 'alias' => 'Html'
|
||||
* 'Html' => array(
|
||||
* 'className' => 'AliasedHtml'
|
||||
* );
|
||||
* );
|
||||
* }}}
|
||||
|
|
Loading…
Add table
Reference in a new issue