You could also use setAction() to avoid forcing the browser to make another request.
http://api20.cakephp.org/class/controller#method-ControllersetAction On Fri, Jun 29, 2012 at 11:08 PM, kwixson <[email protected]> wrote: > 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 >> http://majerle.eu >> >> >> >> 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 >>> [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 -- 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
