Friday, January 8, 2010

Re: How to retrieve the URL being accessed

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 <vikramvmalhotra1...@gmail.com> 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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate