本文整理汇总了PHP中Mage_Core_Controller_Front_Action::_forward方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Controller_Front_Action::_forward方法的具体用法?PHP Mage_Core_Controller_Front_Action::_forward怎么用?PHP Mage_Core_Controller_Front_Action::_forward使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Controller_Front_Action
的用法示例。
在下文中一共展示了Mage_Core_Controller_Front_Action::_forward方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _forward
protected function _forward($action, $controller = null, $module = null, array $params = null)
{
if (!is_null($module)) {
$module = Mage::app()->getFrontController()->getRouterByRoute($module)->getFrontNameByRoute($module);
}
return parent::_forward($action, $controller, $module, $params);
}
示例2: _forward
/**
* Throw control to different action (control and module if was specified).
*
* @param string $action
* @param string|null $controller
* @param string|null $module
* @param array|null $params
* @return null
*/
protected function _forward($action, $controller = null, $module = null, array $params = null)
{
$this->setFlag('', 'forwarded', true);
return parent::_forward($action, $controller, $module, $params);
}
示例3: registerCaptchaCampaignUserAction
public function registerCaptchaCampaignUserAction()
{
$util = Mage::helper('subscribe/CaptchaUtil');
if (isset($_POST['ecad_challenge'])) {
$response = $_POST['ecad_response'];
$chid = $_POST['ecad_challenge'];
$asid = $_POST['ecad_asid'];
// echo $response.' ';
// echo $chid.' ';
// echo $asid.' ';
if ($util->validate_user_response($chid, $response, $asid)) {
return parent::_forward('registerCampaignUser');
} else {
$result["error"] = 4;
$result["message"] = 'Captcha validation was not successful, please try again';
$result["url"] = "back";
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
return;
}
}
$result["error"] = 5;
$result["message"] = 'Captcha not submitted, please try again';
$result["url"] = "back";
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
return;
}