There are three redirecting functions available in frontend controller which are:
redirect()
_redirectUrl()
_redirectReferer()
_redirect('frontName/controllerName/actionName/param1/param2') is used for internal redirection.
_redirectUrl($fullUrl) is used for external redirection.
_redirectReferer() is used to redirect to the referer url.
redirect()
_redirectUrl()
_redirectReferer()
_redirect('frontName/controllerName/actionName/param1/param2') is used for internal redirection.
_redirectUrl($fullUrl) is used for external redirection.
_redirectReferer() is used to redirect to the referer url.
Thanks for this post. I was looking to this function since seven days and finally got it here in your blog. I'm Magento web developer and working to build an Magento 2 ecommerce website for my client and I just looked to solve "front-end controller" function. Thanks again.
ReplyDelete