Re: left & right codes in ACL

2007-11-09 Thread [EMAIL PROTECTED]
No problem. Happy to help. On the documentation front, yes, I think everyone knows this is a little weak at the moment. There is always my first port of call: api.cakephp.org. Also, a number of people, myself included, are currently working hard to try and produce a definitive manual for cake 1.

Re: left & right codes in ACL

2007-11-09 Thread Steveston
Thanks. Tree structure is not a problem for me. I am familiar with typical data structures like tree and typical algorithms like tree traversal, though not a veteran programmer. I am just a little bit surprised that such an important topic is not well covered in manual. I have to search Internet

Re: left & right codes in ACL

2007-11-09 Thread [EMAIL PROTECTED]
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,

Re: left & right codes in ACL

2007-11-09 Thread Steveston
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 few

Re: left & right codes in ACL

2007-11-09 Thread [EMAIL PROTECTED]
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,

Re: left & right codes in ACL

2007-11-09 Thread Steveston
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-Ord

Re: left & right codes in ACL

2007-11-09 Thread [EMAIL PROTECTED]
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 lef

left & right codes in ACL

2007-11-09 Thread Steveston
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" g