Friday, August 12, 2011

Re: redirect admin and user to different dashboard

i use the same action
only switch the rendered view

dashboard{
$this->_dashbboardXXX depending on the role of the current user
}

_dashboardAdmin(
$this->render('dashboard_admin')

_dashboardUser(
$this->render('dashboard_user')
}

makes a lot of thins easier

On 12 Aug., 10:58, nOLL <hasnolm...@gmail.com> wrote:
> Hi,
>
> I have admin and user that will redirect to different dashboard after
> login.
> For example, admin will redirect to dashboard A and allow to access
> dashboard B.
> while user will redirect to dashboard B and not allow to access
> dashboard A.
>
> I already using ACL, but i have problem in redirect after login since
> both admin and user will redirect to dashboard A.
>
> So how i could implement this?
>
> Thanks,
> nOLL

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate