Monday, April 2, 2012

Re: redirecting problem

On Fri, Mar 30, 2012 at 09:42, LITTO CHACKO <litto@axtecindia.com> wrote:
> hai guys, i have to met with other problem.. the problem is that whwn
> i tried to submit a form .... it saves all data nad when it is asked
> to redirect after saving it..it doesn't work???
>
>  if ($this->Email->send()) {
>
>                                                               $this-
>>redirect('/seller/message/');
>                                                       }
> }
>
> it will enter this loop..but after that it is not performing the
> redirection action?? why??
>

Is the command spread over two lines like in the email?

How do you know it is going into that loop? Did you try removing "if
($this->Email->send()) {" and just testing the redirect on its own?

Is there a path at /seller/message?

You could try changing the redirect line to something like
$this->redirect(array('controller' => 'sellers', 'action' => 'message'));

Are there any checks in the "message" action that might be redirecting
back to where it came from?

Mike.

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