Or check the $this->params, I believe its $this->params['action'];

On Dec 12, 7:06 am, Daniel Hofstetter <dhofs...@gmail.com> wrote:
> Hi Anja,
>
> > I get kicked out of some actions in some controllers. I have alread
> > placed
> > function beforeFilter()
> >     {
> >         parent::beforeFilter();
> >                 $this->Auth->authError = sprintf(__('You are not
> > authorized to access that location %s .',true),$this->name);
> >     }
>
> > Which gives me at least the controller name.
> > How can i get the name of the action which I am not authorized to see?
> > Is there a possibility to get it shown on page?
>
> > Mind: I have about 700 actions so something which I haven't to add to
> > each action would be ideal.
>
> $this->action should do the trick.
>
> --
> Daniel Hofstetterhttp://cakebaker.42dh.com
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to