already solved. Thanks..
On Fri, Aug 12, 2011 at 7:20 PM, Mohd Hasnol <[email protected]> wrote:
> Sorry, i still cant get it. I give an example. if admin, i would like to
> link to the admin dashboard(homes/index) while users i link to the users
> dashboard(posts/index). Then, in app_controller i used
> $this->Auth->loginRedirect = array('controller'=>'homes',
> 'action'=>'index');
>
> is it i need loginRedirect or disable it??
>
> Sorry, im newb.
>
> Thanks.
>
>
> On Fri, Aug 12, 2011 at 6:02 PM, euromark <[email protected]>wrote:
>
>> 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 <[email protected]> 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
>> [email protected] For more options, visit this group
>> at http://groups.google.com/group/cake-php
>>
>
>
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php