The Acl manual explains it all. You should never really need to be
editing these values directly, just use the console and/or Acl
component, which will take care of all the Tree values for you.

Alternatively, learn how MPTT works, and spend a lot of time doing it
all yourself.

On Nov 9, 8:18 pm, Steveston <[EMAIL PROTECTED]> wrote:
> If lft & right values are required, I am very surprised to see that
> there is no any explanation on manual about it.
>
> On Nov 9, 11:07 am, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Very much not.
>
> > The lft and rght values are an inherent part of the tree structure
> > (it's a Modified Pre-Order Traversal Tree if you're interested).
> > Without them, there is no tree structure.
>
> > The Acl system can be used to repair a damaged tree based on the
> > parent_id fields, but without the full left and right stuff, it just
> > won't be able to do aco or aro lookups, which is pretty fundamental.
>
> > I would recommend using the Acl behavior, which implies the Tree
> > behavior too, as a means of editing these values and having the MPTT
> > stuff handled for you.
>
> > For a clearer explanation see google on MPTT (or the forthcoming cake
> > 1.2 manual... when I get round to it - sorry John!)
>
> > Simon
>
> > On Nov 9, 6:42 pm, Steveston <[EMAIL PROTECTED]> wrote:
>
> > > Default values for lft & right codes in aco & aro are NULL.
>
> > > If I do not provide lft & right value (just use default NULL), will
> > > ACL still work correctly?


--~--~---------~--~----~------------~-------~--~----~
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