Hello!

I have a model named Menu which surprisingly stores menuitems for my
websites (using tree behavior). There are also models voor Users and
Groups. The menu creates the Aco's and the User and Group models
create the corresponding Aro's.

What I want is to get all menuitems that a user has access to, but I
can't figure out what the most efficient way would be? I can check if
a user has access to one page using Auth->check but doing that on
thousands of menuitems will not be healthy for the performance.

I just can't figure out what the best and most efficient way would be
to ultimately get a hiearchial array of menuitems that only the user
has access to. I'm not asking for code examples or so, just a 'this is
how to' would be great! ;-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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