Hi,

That looks promising, I will try that out.

Anja

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag 
von gearvOsh
Gesendet: Freitag, 12. Dezember 2008 23:06
An: CakePHP
Betreff: Re: Debugging Auth: getting the name of teh action I get kicked


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

On Dec 12, 7:06 am, Daniel Hofstetter <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to