Hi, I am following this tutorial. And I am getting this error for redirecting:
Fatal error: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent' in D:\www\projeto\lib\Zend\Controller\Response\Abstract.php:240 Stack trace: #0 D:\www\projeto\lib\Zend\Controller\Response\Abstract.php(125): Zend_Controller_Response_Abstract->canSendHeaders(true) #1 D:\www\projeto\lib\Zend\Controller\Action.php(607): Zend_Controller_Response_Abstract->setRedirect('/projeto/', 302) #2 D:\www\projeto\application\controllers\IndexController.php(143): Zend_Controller_Action->_redirect('/') #3 D:\www\projeto\lib\Zend\Controller\Action.php(392): IndexController->deleteAction() #4 D:\www\projeto\lib\Zend\Controller\Dispatcher\Standard.php(211): Zend_Controller_Action->dispatch('deleteAction') #5 D:\www\projeto\lib\Zend\Controller\Front.php(750): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #6 D:\www\projeto\index.php(44): Zend_Controller_Front->dispatch() #7 {main} thrown in D:\www\projeto\lib\Zend\Controller\Response\Abstract.php on line 240 Could someone help me?