Class used Mage_Core_Controller_Varien_Action class.
Redirect to url
_redirectUrl($url)
Check url to be used as internal
_isUrlInternal($url)
Redirect to error page
_redirectError($defaultUrl)
Redirect to path
_redirect($path, $arguments=array())
Redirect to success page
_redirectSuccess($defaultUrl)
Identify referer url via all accepted methods (HTTP_REFERER, regular or base64-encoded request param)
_getRefererUrl()
Set referer url for redirect in response
_redirectReferer($defaultUrl=null)
You can use the redirect functions in your controller class.: $url = "http://abc.com";
$this->_redirectUrl($url);
Redirect with path and arguments:-
Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl($path, $arguments));
Mage::app()->getFrontController()->getResponse()->setRedirect($url);
Redirect to url
_redirectUrl($url)
Check url to be used as internal
_isUrlInternal($url)
Redirect to error page
_redirectError($defaultUrl)
Redirect to path
_redirect($path, $arguments=array())
Redirect to success page
_redirectSuccess($defaultUrl)
Identify referer url via all accepted methods (HTTP_REFERER, regular or base64-encoded request param)
_getRefererUrl()
Set referer url for redirect in response
_redirectReferer($defaultUrl=null)
You can use the redirect functions in your controller class.: $url = "http://abc.com";
$this->_redirectUrl($url);
Redirect with path and arguments:-
Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl($path, $arguments));
Mage::app()->getFrontController()->getResponse()->setRedirect($url);
I dont know which fool says that this is his copy righted material...
ReplyDeleteThis is a 100% open source blog for magento lovers.
-
Author
This comment has been removed by the author.
ReplyDelete