On May 27, 2008, at 8:50 PM, azlanms wrote:

>
> I'm trying to create a model called 'Tree' based on the AclNode class
> as:
>
> class Tree extends AclNode {
>  var $name = 'Tree';
>  var $validate = array(
>    'title' => VALID_NOT_EMPTY
>  );
>
> but I got this error message:
>
> Fatal error: Class tree: Cannot inherit from undefined class aclnode
> in /usr/local/myweb/app/models/tree.php on line 17
>
> I've installed and placed all the CakePHP library files in the correct
> location (otherwise I wouldn't be able to access my website in the
> first place).
>
> Can someone tell me where did I go wrong?

You'd need to include the model before you try to extend it, either  
via loadModel, or App:import(), depending on your version.

Why do you want to extend this core class? You can get tree  
functionality with the core TreeBehavior...

-- John

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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