當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Controller_Router_Rewrite::removeDefaultRoutes方法代碼示例

本文整理匯總了PHP中Zend_Controller_Router_Rewrite::removeDefaultRoutes方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Controller_Router_Rewrite::removeDefaultRoutes方法的具體用法?PHP Zend_Controller_Router_Rewrite::removeDefaultRoutes怎麽用?PHP Zend_Controller_Router_Rewrite::removeDefaultRoutes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Controller_Router_Rewrite的用法示例。


在下文中一共展示了Zend_Controller_Router_Rewrite::removeDefaultRoutes方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _getRouterInstance

 protected function _getRouterInstance()
 {
     $routes = array('default' => $this->_getRoute('*', self::CONTROLLER_INDEX), self::ROUTE_INDEX => $this->_getRoute('form-to-mail', self::CONTROLLER_INDEX), self::ROUTE_CONFIRM => $this->_getRoute('form-to-mail/confirm', self::CONTROLLER_INDEX), self::ROUTE_LOGIN => $this->_getRoute('form-to-mail/login', self::CONTROLLER_LOGIN));
     require_once 'Zend/Controller/Router/Rewrite.php';
     $router = new Zend_Controller_Router_Rewrite();
     $router->removeDefaultRoutes();
     $router->addRoutes($routes);
     return $router;
 }
開發者ID:sitengine,項目名稱:sitengine,代碼行數:9,代碼來源:Front.php

示例2: _getRouterInstance

 protected function _getRouterInstance()
 {
     $path = $this->getServicePath();
     $routes = array('default' => $this->_getRoute('*', self::CONTROLLER_USER), self::ROUTE_USER => $this->_getRoute("{$path}/user", self::CONTROLLER_USER), self::ROUTE_USER_NEW => $this->_getRoute("{$path}/join", self::CONTROLLER_USER), self::ROUTE_LOGIN => $this->_getRoute("{$path}/login", self::CONTROLLER_LOGIN));
     require_once 'Zend/Controller/Router/Rewrite.php';
     $router = new Zend_Controller_Router_Rewrite();
     $router->removeDefaultRoutes();
     $router->addRoutes($routes);
     return $router;
 }
開發者ID:sitengine,項目名稱:sitengine,代碼行數:10,代碼來源:Front.php

示例3: _getRouterInstance

 protected function _getRouterInstance()
 {
     require_once 'Zend/Controller/Router/Route.php';
     $routes = array('default' => new Zend_Controller_Router_Route('*', array(Sitengine_Env::PARAM_CONTROLLER => $this->getController(self::CONTROLLER_INDEX), Sitengine_Env::PARAM_ACTION => 'index')), self::ROUTE_INDEX => new Zend_Controller_Router_Route('backend/sitemap/:' . Sitengine_Env::PARAM_ACTION . '/*', array(Sitengine_Env::PARAM_CONTROLLER => $this->getController(self::CONTROLLER_INDEX), Sitengine_Env::PARAM_ACTION => 'index')), self::ROUTE_LOGIN => new Zend_Controller_Router_Route('backend/sitemap/login', array(Sitengine_Env::PARAM_CONTROLLER => $this->getController(self::CONTROLLER_LOGIN), Sitengine_Env::PARAM_ACTION => 'index')));
     require_once 'Zend/Controller/Router/Rewrite.php';
     $router = new Zend_Controller_Router_Rewrite();
     $router->removeDefaultRoutes();
     $router->addRoutes($routes);
     return $router;
 }
開發者ID:sitengine,項目名稱:sitengine,代碼行數:10,代碼來源:Front.php

示例4: _getRouterInstance

 protected function _getRouterInstance()
 {
     $path = $this->getServicePath();
     $routes = array('default' => $this->_getRoute('*', self::CONTROLLER_CAMPAIGNS), self::ROUTE_CAMPAIGNS => $this->_getRoute("{$path}/campaigns", self::CONTROLLER_CAMPAIGNS), self::ROUTE_CAMPAIGNS_SHARP => $this->_getRoute("{$path}/campaigns/:id", self::CONTROLLER_CAMPAIGNS), self::ROUTE_SUBSCRIPTIONS_SUBSCRIBE => $this->_getRoute("{$path}/subscriptions", self::CONTROLLER_SUBSCRIPTIONS), self::ROUTE_SUBSCRIPTIONS_UNSUBSCRIBE => $this->_getRoute("{$path}/subscriptions/unsubscribe", self::CONTROLLER_SUBSCRIPTIONS), self::ROUTE_SUBSCRIPTIONS_CONFIRM_OPTIN => $this->_getRoute("{$path}/subscriptions/confirm/optin", self::CONTROLLER_SUBSCRIPTIONS), self::ROUTE_SUBSCRIPTIONS_CONFIRM_FINAL => $this->_getRoute("{$path}/subscriptions/confirm/final", self::CONTROLLER_SUBSCRIPTIONS), self::ROUTE_SUBSCRIPTIONS_CONFIRM_UNSUBSCRIBE => $this->_getRoute("{$path}/subscriptions/confirm/unsubscribe", self::CONTROLLER_SUBSCRIPTIONS));
     require_once 'Zend/Controller/Router/Rewrite.php';
     $router = new Zend_Controller_Router_Rewrite();
     $router->removeDefaultRoutes();
     $router->addRoutes($routes);
     return $router;
 }
開發者ID:sitengine,項目名稱:sitengine,代碼行數:10,代碼來源:Front.php

示例5: _getRouterInstance

 protected function _getRouterInstance()
 {
     $path = $this->getServicePath();
     $routes = array('default' => $this->_getRoute('*', self::CONTROLLER_GOODIES), self::ROUTE_LOGIN => $this->_getRoute("{$path}/login", self::CONTROLLER_LOGIN), self::ROUTE_GOODIES => $this->_getRoute("{$path}/goodies", self::CONTROLLER_GOODIES), self::ROUTE_GOODIES_SHARP => $this->_getRoute("{$path}/goodies/:id", self::CONTROLLER_GOODIES), self::ROUTE_GOODIES_NEW => $this->_getRoute("{$path}/goodies/new", self::CONTROLLER_GOODIES), self::ROUTE_GOODIES_BATCH => $this->_getRoute("{$path}/goodies/batch", self::CONTROLLER_GOODIES), self::ROUTE_GOODIES_UPLOAD => $this->_getRoute("{$path}/goodies/upload", self::CONTROLLER_GOODIES), self::ROUTE_GOODIES_ASSIGN => $this->_getRoute("{$path}/goodies/assign", self::CONTROLLER_GOODIES), self::ROUTE_GOODIES_SHOULDIES => $this->_getRoute("{$path}/goodies/:aid/shouldies", self::CONTROLLER_GOODIES_SHOULDIES), self::ROUTE_GOODIES_SHOULDIES_SHARP => $this->_getRoute("{$path}/goodies/:aid/shouldies/:id", self::CONTROLLER_GOODIES_SHOULDIES), self::ROUTE_GOODIES_SHOULDIES_NEW => $this->_getRoute("{$path}/goodies/:aid/shouldies/new", self::CONTROLLER_GOODIES_SHOULDIES), self::ROUTE_GOODIES_SHOULDIES_BATCH => $this->_getRoute("{$path}/goodies/:aid/shouldies/batch", self::CONTROLLER_GOODIES_SHOULDIES), self::ROUTE_GOODIES_SHOULDIES_UPLOAD => $this->_getRoute("{$path}/goodies/:aid/shouldies/upload", self::CONTROLLER_GOODIES_SHOULDIES), self::ROUTE_GOODIES_SHOULDIES_ASSIGN => $this->_getRoute("{$path}/goodies/:aid/shouldies/assign", self::CONTROLLER_GOODIES_SHOULDIES), self::ROUTE_GOODIES_SHOULDIES_COULDIES => $this->_getRoute("{$path}/goodies/:gaid/shouldies/:aid/couldies", self::CONTROLLER_GOODIES_SHOULDIES_COULDIES), self::ROUTE_GOODIES_SHOULDIES_COULDIES_SHARP => $this->_getRoute("{$path}/goodies/:gaid/shouldies/:aid/couldies/:id", self::CONTROLLER_GOODIES_SHOULDIES_COULDIES), self::ROUTE_GOODIES_SHOULDIES_COULDIES_NEW => $this->_getRoute("{$path}/goodies/:gaid/shouldies/:aid/couldies/new", self::CONTROLLER_GOODIES_SHOULDIES_COULDIES), self::ROUTE_GOODIES_SHOULDIES_COULDIES_BATCH => $this->_getRoute("{$path}/goodies/:gaid/shouldies/:aid/couldies/batch", self::CONTROLLER_GOODIES_SHOULDIES_COULDIES), self::ROUTE_GOODIES_SHOULDIES_COULDIES_UPLOAD => $this->_getRoute("{$path}/goodies/:gaid/shouldies/:aid/couldies/upload", self::CONTROLLER_GOODIES_SHOULDIES_COULDIES), self::ROUTE_GOODIES_SHOULDIES_COULDIES_ASSIGN => $this->_getRoute("{$path}/goodies/:gaid/shouldies/:aid/couldies/assign", self::CONTROLLER_GOODIES_SHOULDIES_COULDIES));
     require_once 'Zend/Controller/Router/Rewrite.php';
     $router = new Zend_Controller_Router_Rewrite();
     $router->removeDefaultRoutes();
     $router->addRoutes($routes);
     return $router;
 }
開發者ID:sitengine,項目名稱:sitengine,代碼行數:10,代碼來源:Front.php

示例6: _getRouterInstance

 protected function _getRouterInstance()
 {
     $routes = $this->getBlogPackage()->getBlogSlug() === null ? $this->_getMultiStreamRoutes() : $this->_getSingleStreamRoutes();
     require_once 'Zend/Controller/Router/Rewrite.php';
     $router = new Zend_Controller_Router_Rewrite();
     $router->removeDefaultRoutes();
     $router->addRoutes($routes);
     return $router;
 }
開發者ID:sitengine,項目名稱:sitengine,代碼行數:9,代碼來源:Front.php


注:本文中的Zend_Controller_Router_Rewrite::removeDefaultRoutes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。