/** * Cause the current action to be undispatched and redirect * * @param string $path */ protected function _redirect($path) { $exception = new Mage_Core_Controller_Varien_Exception(); throw $exception->prepareRedirect($path); }
/** * Cause the current action to be undispatched and redirect * * @param string $path */ protected function _redirect($path) { header('Location: ' . Mage::getUrl('', array('_direct' => $path))); exit; $exception = new Mage_Core_Controller_Varien_Exception(); throw $exception->prepareRedirect($path); }