Monday, October 27, 2008

Using the Tree behavior

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: