예제 #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();
 }