If you wanted to rewrite your NestedSetModel as a behavior, it'd look
like this:

class NestedSetBehavior extends ModelBehavior {
    // Methods and callbacks go here
}

Then, you'd add it to your model like this (please note, your Forum
model should be called Forum, not ForumModel):

class Forum extends AppModel {
    var $actsAs = array("NestedSet");
}

Any public methods (i.e. any methods that are not prefixed with _),
(not callbacks) are automatically available in the model.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to