Example #1
0
 protected function _getRoutesFromDirectory($dir)
 {
     $root = Bootstrap::getInstance()->getRootDir();
     Application::scanDir($dir, $files);
     foreach ($files as $file) {
         $route = str_replace(array($root . '/', '.php'), '', $file);
         $this->_routes[] = '\\' . str_replace('/', '\\', $route);
     }
 }