本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}