Hello, you are put something on output - write something on document (maybe something in controller ..) and than you are trying to redirect - this cause error, becose you can redirect after you put something on document
as i see, you have problem in model file ... sometimes hapens to me too (and this err makes me crazy grr) ... often is made, when you made some blank space in model file (post.php), you can try to create new model file (don`t copy, write new...) and check you controller, if you don`t write something 2011/1/10 Jeremy Burns | Class Outfit <[email protected]> > More specifically, you are probably trying to echo something screen, which > is causing this error. > > Jeremy Burns > *Class Outfit* > * > * > [email protected] <[email protected]> > http://www.classoutfit.com > > On 10 Jan 2011, at 11:53, Amit Badkas wrote: > > Hi, > > The error message itself has information for file and line number > ('C:\xampp\htdocs\todo\app\models\post.php:9') > you need to look at. > > Amit Badkas > > PHP Applications for E-Biz: http://www.sanisoft.com > > > > On Mon, Jan 10, 2011 at 5:09 PM, Deepak <[email protected]> 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 [email protected] >> To unsubscribe from this group, send email to >> [email protected]<cake-php%[email protected]>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 [email protected] > To unsubscribe from this group, send email to > [email protected] 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
