I have to agree with Mike, are you sure it's making it that far into the code and have you tried testing the redirect on it's own?
Alter your 'if' statement to alert in the case the condition (send email) fails. if ($this->Email->send()){ $this->redirect('/sellers/message'); } else { die('Message did not send'); // I would not leave this in for production, just to test } or simply temporarily alter your controller method to quickly test the redirect by calling the redirect first. /Sellers Controller: function test(){ $this->redirect('/sellers/message'): } I would be more inclined to think $this->Email is failing for some reason and the redirect is not even being called. HTH - Ed On Monday, April 2, 2012 9:16:39 AM UTC-4, bbowler86 wrote: > > Litto some more information would help, is it redirecting to a blank page > instead of redirecting? > > On Mon, Apr 2, 2012 at 9:15 AM, Mike Griffin <griff...@gmail.com> wrote: > >> On Fri, Mar 30, 2012 at 09:42, LITTO CHACKO <li...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php