On Jan 7, 9:51 am, NilsR <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> I have a problem with my Tree and Acl behaviors. I have the model Site
> which acts as a Tree and Acl. Everything works fine, Acos are created
> and the Site is stored inside an MPTT. Yet, what is disturbing me is,
> that the Acos arent stored in a tree.
>
> Lets assume I have the Site tree:
> Root
> - Site A
> - - Site B
> - - Site C
> - - - Site E
> - Site D
>
> My Acos will be like that:
> - group.Sites
> - - Site A
> - - Site B
> - - Site C
> - - Site D
> - - Site E
>
> But i want and certainly need the Acos just like the Site tree ... I
> hope you get my point.
>
> Greetings, NilsR
Have you defined a method named parentNode in your Site model? It
isn't returning the pk value of the parent Site node.
hth,
AD
Ref:
https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/behaviors/acl.php?rev=6296#L82
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---