Skip to content

Commit

Permalink
Added text to clarify naming of behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
watermark committed Dec 14, 2011
1 parent ef95d26 commit 90aacde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions en/models/behaviors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ automatically. The callbacks are similar to those found in Models:
``afterDelete`` and ``onError`` - see
:doc:`/models/callback-methods`.

Your behaviors should be placed in ``app/Model/Behavior``. It's
often helpful to use a core behavior as a template when creating
Your behaviors should be placed in ``app/Model/Behavior``. They are named in CamelCase and
postfixed by ``Behavior``, ex. NameBehavior.php.
It's often helpful to use a core behavior as a template when creating
your own. Find them in ``lib/Cake/Model/Behavior/``.

Every callback and behavior method takes a reference to the model it is being called
Expand Down

0 comments on commit 90aacde

Please sign in to comment.