Yes, you do need to have a lft and rght column in your table.

I am in the process of writing a basic tutorial for the Tree Behaviour
which should be ready soonish, but in the meantime you should download
ad7six's MPTT tree tutorial from http://cakeforge.org/projects/noswad

Cheers,
Adam

On Jan 30, 10:23 pm, Anton <[EMAIL PROTECTED]> wrote:
> Hi I am really interested in playing around with the tree behavior but
> I cant get anything to work.
>
> I have a model that has a parent_id field but i get SQL errors because
> i dont have a lft or rght column. do i need to add these in to my
> table?
>
> Has anyone came across a tutorial on how to use tree behavior? I have
> read the chapter in the new manualhttp://tempdocs.cakephp.org/#TOC96366
> and the tree helper in the 
> bakeryhttp://bakery.cakephp.org/articles/view/tree-helper-1
> but they dont say anything about haveing a left and right filed in my
> table.
>
> I have just set up the model in the same way as the manual
>
> var $actsAs = array('Tree');
>
> thanks in advance for any help
--~--~---------~--~----~------------~-------~--~----~
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