See this article to understand what the lft/rght values are for: http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
You can use the TreeBehavior::recover method to generate these values for an already existing tree. On 28 Oct 2008, at 07:36, [EMAIL PROTECTED] wrote: > > I'm having trouble using the Tree behavior. Exactly from where do I > get the 'lft' right 'rght' values? I can't figure out what these > values could be. > > For example: > > (Parent 1) Category 1 > (Child of Parent 1) Category 1.1 > (Child of Parent 1) Category 1.2 > (Parent 2) Category 2 > (Child of Parent 2) Category 2.1 > (Child of Category 2.1) Category 2.1.1 > > How would I get along doing something like that? I'm trying to create > a simple CMS for my website, and there has to be an automated way of > finding these 'lft' and 'rght' values. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
