當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。