0
如何變更/重新路由當前請求的動作,如果用戶沒有登錄。Magento的,如何路由的行動基於用戶屬性
這是我的自定義模塊的控制器。
有沒有想到重寫preDispatch(),但不認爲這是正確的。
喜歡的東西,
init() {
if (!$user->loggedIn)
change action
}
如何變更/重新路由當前請求的動作,如果用戶沒有登錄。Magento的,如何路由的行動基於用戶屬性
這是我的自定義模塊的控制器。
有沒有想到重寫preDispatch(),但不認爲這是正確的。
喜歡的東西,
init() {
if (!$user->loggedIn)
change action
}
$this->_redirect($path, $arguments=array());
欲瞭解更多信息請參閱http://blog.chapagain.com.np/magento-redirect-functions/