Hi, This problem occurs if you want to print/echo something before header function. So remove all printing function before header function.
This problem also can occurs there have any white space in controller after php closing tag( ?>) So check it. Hope it will works fine. Thanks On 1/11/11, Andi <blumenm...@gmail.com> wrote: > The Problem is the redirecting a page over the php header() function. > This just works, if there is absolutly NO output send. CakePHP uses > the header-redirect for redirecting between the controller actions. So > if you have an output e.g. with debug() you will get the information, > that no redirecting is possible. > > More information about header() function: > http://php.net/manual/en/function.header.php > > On 10 Jan., 12:39, Deepak <test05041...@gmail.com> wrote: >> Warning (2): Cannot modify header information - headers already sent >> by (output started at C:\xampp\htdocs\todo\app\models\post.php:9) [CORE >> \cake\libs\controller\controller.php, line 742] >> Code | Context >> >> $status = "Location:http://localhost/todo/posts" >> >> header - [internal], line ?? >> Controller::header() - CORE\cake\libs\controller\controller.php, line >> 742 >> Controller::redirect() - CORE\cake\libs\controller\controller.php, >> line 721 >> PostsController::delete() - APP\controllers\posts_controller.php, line >> 64 >> Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 204 >> Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171 >> [main] - APP\webroot\index.php, line 85 >> >> please help me as i want to finish it of as early as possible. > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > 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?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en