当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Controller_Action::_redirect方法代码示例

本文整理汇总了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));
 }
开发者ID:phamviet1510,项目名称:giaovu,代码行数:7,代码来源:AbstractController.php

示例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;
     }
 }
开发者ID:kandy,项目名称:system,代码行数:9,代码来源:Abstract.php

示例3: _redirect

 /**
  * リダイレクト
  * @override
  */
 protected function _redirect($url, array $options = array())
 {
     // コミット
     $this->db()->commit();
     return parent::_redirect($url, $options);
 }
开发者ID:herisher,项目名称:citrajayamandiri,代码行数:10,代码来源:ManagerBaseController.php

示例4: _redirect

 protected function _redirect($url, array $options = array())
 {
     $this->_helper->redirector->setExit(false);
     parent::_redirect($url, $options);
     throw new Am_Exception_Redirect($url);
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:6,代码来源:Controller.php

示例5: _redirect

 protected function _redirect($url, array $options = array())
 {
     $url = Core_Model_Url::create($url, $options);
     parent::_redirect($url, $options);
 }
开发者ID:bklein01,项目名称:siberian_cms_2,代码行数:5,代码来源:Default.php

示例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);
     }
 }
开发者ID:jiangti,项目名称:usvn,代码行数:17,代码来源:Controller.php

示例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);
 }
开发者ID:jaybill,项目名称:Bolts,代码行数:8,代码来源:Abstract.php

示例8: _redirect

 protected function _redirect($controller, $action, $options = array())
 {
     parent::_redirect(RM_Environment::getInstance()->getRouter()->_($controller, $action, $options));
 }
开发者ID:laiello,项目名称:resmania,代码行数:4,代码来源:Controller.php

示例9: _roundTripRedirect

 protected function _roundTripRedirect($url, $options = array())
 {
     Session::setParam('_roundTripRedirectUrl', $_SERVER['REQUEST_URI']);
     return parent::_redirect($url, $options);
 }
开发者ID:highhair20,项目名称:glo,代码行数:5,代码来源:Api.php

示例10: _redirect

 protected function _redirect($url, $options = array())
 {
     Zend_Registry::get('logger')->log("redirected to '{$url}'", Zend_Log::DEBUG);
     return parent::_redirect($url, $options);
 }
开发者ID:sdgdsffdsfff,项目名称:auth-center,代码行数:5,代码来源:Action.php

示例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);
 }
开发者ID:lukaszjankowski,项目名称:alchemy,代码行数:10,代码来源:Action.php

示例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);
     }
 }
开发者ID:jtietema,项目名称:Fizzy,代码行数:17,代码来源:Controller.php


注:本文中的Zend_Controller_Action::_redirect方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。