If you're not comfortable with mptt, just use the functions described
in http://manual.cakephp.org/chapter/acl for managing the tree. See
especially the section called "Creating Access Request Objects (AROs)
and Access Control Objects (ACOs)"

If you want to know all about left and right...  (lft, rght) there's a
huge amount of this on google.

Also, checkout another great article from a cake perspective:
http://www.ad7six.com/MiBlog/Blogs/view/Trees

Essentially, the left and right values are what defines the tree and
the parent / child relationships.

simon


On Nov 9, 10:02 pm, Steveston <[EMAIL PROTECTED]> wrote:
> No standard web pages containing all your search terms were found.
>
> Your search - lft right acl site:http://manual.cakephp.org- did not
> match any documents.
>
> Suggestions:
>
>     * Make sure all words are spelled correctly.
>     * Try different keywords.
>     * Try more general keywords.
>     * Try fewer keywords.
>
> :)
>
> On Nov 9, 1:51 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > 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