User dashboard where customer can login and can see all his information about ordered product and other information. In dashboard navigation menu, I added one more tab to redirect to external url. In controller, i am using $this->__redirect($url);
bt is showing the error as :
"Cannot send headers; headers already sent"
I used a code in controller as :
public function fooAction(){
$url = "http://example.com/bar/"; // this is external url
$this->_redirect($url);
// Mage::app()->getResponse()->setRedirect($url);
}
It might be very easy but as I don't know, how to debug this in magento.
Thanks..
Best Answer
It may be because of extra white spaces after php closing tag (?>) in the file. This error also shown because of following points -