Re: Auth allow for shared functions in Appcontroller
On Fri, Nov 23, 2012 at 5:37 AM, MetZ <metz80@gmail.com> wrote:
>
> So, what to put where?
>
> eg: PageController
> $this->allowedActions = array_merge($this->allowedActions, $args);
No, no. This line is from AuthComponent. I just mentioned it to point
out that calling allow() in AppController *and* your regular
controller should work just fine.
So how are you initialising Auth? In the $components array or in beforeFilter()?
What you want to do is possible so you've probably either got
something misconfigured somewhere or you're calling something
where/when you shouldn't be.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home