示例#1
0
文件: Routes.php 项目: hartum/basezf
 public static function &fetch($nameSpace = null)
 {
     static $routes;
     if ($nameSpace === null) {
         $nameSpace = MyProject_Routes::getCurrentNameSpace();
     }
     // do not create multiple instance of routes
     if (!isset($routes[$nameSpace])) {
         $routes = array('error-404' => new Zend_Controller_Router_Route('404', array('module' => 'default', 'controller' => 'error', 'action' => 'error404')), 'error-500' => new Zend_Controller_Router_Route('500', array('module' => 'default', 'controller' => 'error', 'action' => 'error500')));
     }
     return $routes;
 }
示例#2
0
文件: index.php 项目: hartum/basezf
 protected function _getRoutes()
 {
     return MyProject_Routes::fetch();
 }