I am trying to redirect to a static page from a controller (users add)
using:
$this->redirect('/pages/email_sent');

... but I get sent to the users login view.  The same happens if I try
to type the url into the browser:
localhost/myapp/pages/email_sent

Note I have the auth component set up as follows:
$this->Auth->allow('index', 'view');
$this->Auth->loginRedirect = array('controller'=>'posts', 'action' =>
'index');
$this->Auth->logoutRedirect = array('controller'=>'posts', 'action' =>
'index');

Thanks.

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

Reply via email to