take a lock at
$this->params

you can do that with
pr() which prints out the array as long as you are in debug mode

there is
- controller: $this->params['controller']
- action: $this->params['action']
and more
but those two should do it for now

you can now check on them
but as soon as you need more functionality check out "auth component"
it is very good and powerful in handling rights




On 9 Jan., 03:36, SeeVik <[email protected]> wrote:
> Hello all
>
> I am just starting out with cakephp. I want to restrict the access to
> some particular controllers and actions depending on user privileges.
> I am thinking of doing this in the app_controller module. I wanted to
> know how can I check the controller and action being accessed over
> there.
>
> Thanks and Regards
> ShiVik
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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