本文整理汇总了PHP中Zend_Controller_Action::_redirect方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Controller_Action::_redirect方法的具体用法?PHP Zend_Controller_Action::_redirect怎么用?PHP Zend_Controller_Action::_redirect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Controller_Action
的用法示例。
在下文中一共展示了Zend_Controller_Action::_redirect方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _redirect
protected function _redirect($url, $options = array())
{
if (!is_array($url)) {
parent::_redirect($url, $options);
}
parent::_redirect($this->_buildUrl($url));
}
示例2: _redirect
protected function _redirect($url, array $options = array())
{
if (!$this->getRequest()->isXmlHttpRequest() || isset($options['force']) && $options['force']) {
parent::_redirect($url, $options);
} else {
//redirect sample
$this->view->redirect = $url;
}
}
示例3: _redirect
/**
* リダイレクト
* @override
*/
protected function _redirect($url, array $options = array())
{
// コミット
$this->db()->commit();
return parent::_redirect($url, $options);
}
示例4: _redirect
protected function _redirect($url, array $options = array())
{
$this->_helper->redirector->setExit(false);
parent::_redirect($url, $options);
throw new Am_Exception_Redirect($url);
}
示例5: _redirect
protected function _redirect($url, array $options = array())
{
$url = Core_Model_Url::create($url, $options);
parent::_redirect($url, $options);
}
示例6: _redirect
/**
* Redirect to another URL
*
* Proxies to {@link Zend_Controller_Action_Helper_Redirector::gotoUrl()}.
*
* @param string $url
* @param array $options Options to be used when redirecting
* @return void
*/
protected function _redirect($url, array $options = array())
{
if (!defined("PHPUnit_MAIN_METHOD")) {
return parent::_redirect($url, $options);
} else {
throw new USVN_Test_Exception_Redirect($url, $options);
}
}
示例7: _redirect
protected function _redirect($url, array $options = array(), $auto_add_locale = true)
{
if ($auto_add_locale) {
$urlfilter_params = array('locale_code' => $this->locale_code);
}
$url_filter = new Bolts_Url_Filter();
return parent::_redirect($url_filter->filter($url, $urlfilter_params), $options);
}
示例8: _redirect
protected function _redirect($controller, $action, $options = array())
{
parent::_redirect(RM_Environment::getInstance()->getRouter()->_($controller, $action, $options));
}
示例9: _roundTripRedirect
protected function _roundTripRedirect($url, $options = array())
{
Session::setParam('_roundTripRedirectUrl', $_SERVER['REQUEST_URI']);
return parent::_redirect($url, $options);
}
示例10: _redirect
protected function _redirect($url, $options = array())
{
Zend_Registry::get('logger')->log("redirected to '{$url}'", Zend_Log::DEBUG);
return parent::_redirect($url, $options);
}
示例11: _redirect
/**
* Overriden to avoid exits
*
* @see Zend_Controller_Action::_redirect()
*/
protected function _redirect($url, array $options = array())
{
$options['exit'] = false;
return parent::_redirect($url, $options);
}
示例12: _redirect
/**
* Overrides Zend Framework default redirect function to allow redirecting
* to route names. Route names start with an '@'.
* @param string $url the url or route name
* @param array $options the route parameters
*/
protected function _redirect($url, $options = array())
{
if (false !== strpos($url, '@') && 0 === strpos($url, '@')) {
// A routename is specified
$url = trim($url, '@');
$this->_helper->redirector->gotoRoute($options, $url);
} else {
// Assume an url is passed in
parent::_redirect($url, $options);
}
}