Friday, June 29, 2012

Re: Redirect to Different Action in If Statement

Thank you very much! I'll give that a try.

Cheers,
-Kevin

On Thursday, June 28, 2012 7:45:08 AM UTC-4, MaJerle.Eu wrote:
in your controller

$this->redirect(array('action' => 'view'));
--
Lep pozdrav, Tilen Majerle



2012/6/28 kwixson

How do I redirect a user from the index action to the view action if the user has a particular role (i.e., member, as opposed to admin?

Note: I do NOT want to hear about routes. That might be the right way to go generally, but in this case it's not. I just want to know how to do an IF statement in the index action that will redirect the user to the view action. 

Thank you.

--
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

--
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

No comments: