重定向到magento中控制器中的另一个函数

Kic*_*chu 3 controller magento

我有magento网站.

我有一个控制器,如何重定向到这个控制器的另一个功能?

这意味着,有两个功能:

1.test()


i want to redirect from test1() to test2()
Run Code Online (Sandbox Code Playgroud)

我怎样才能做到这一点?

How can i redirect from one function to another function in the same controller?
Run Code Online (Sandbox Code Playgroud)

Mag*_*cho 8

前端控制器有三种重定向功能:

_redirect()
_redirectUrl()
_redirectReferer()
Run Code Online (Sandbox Code Playgroud)

_redirect('frontName/controllerName/actionName/param1/param2')用于内部重定向.
_redirectUrl($fullUrl)用于外部重定向.
_redirectReferer()用于重定向到referer url.

希望这能提供更多信息.