You need allow the "display" action

--
Thiago Belem,
Desenvolvedor WEB

Enviado do meu Android
Em 09/01/2012 04:29, "Jeremy Burns | Class Outfit" <
[email protected]> escreveu:

> From what you have written it appears that your Auth->allow statement
> doesn't include /pages/email_sent - so it will prompt for a log in.
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 8 Jan 2012, at 16:38:43, Daniel wrote:
>
> 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
>
>
>  --
> 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

Reply via email to