Probably, I will check in the AppController::beforeFilter(); or even better make a component.
Helpers are meant for the view, not the controller. Given the fact that I haven't read your code, and you haven't explained what are you trying to accomplish I can't give you further assistance. What I've suggested was that in the light of MVC, is better not to make ACL checks in the view, and let the view be a mere representational layer, not including business or application logic in it. Maybe you need to review the MVC pattern, and the relevant cakephp documentation. And in order to help you, you need to provide more details about what are you trying to do and what are your reasons to try to make that way. HTH, Dardo Sordi. On Wed, Apr 9, 2008 at 8:45 PM, . <[EMAIL PROTECTED]> wrote: > what controller would i check in for the layout? or use helper? > > > > > On Wed, Apr 9, 2008 at 4:14 AM, Dardo Sordi Bogado <[EMAIL PROTECTED]> > wrote: > > > > > You don't. Check from controller/component and pass the allowed/denied > > to the view/layout. > > > > > > On Wed, Apr 9, 2008 at 7:19 AM, . <[EMAIL PROTECTED]> wrote: > > > hi how do you check acl from the View? ie $acl->check(...) in the view, > > > instead of controller. How would I check ACL from my layout? thanks > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
