Example #1
0
 private static function directories()
 {
     if (empty(self::$dirs)) {
         $base = __DIR__;
         self::$dirs = [$base . '/Controllers', $base . '/Helpers', $base . '/Routers', $base . '/Views'];
     }
     return self::$dirs;
 }
Example #2
0
 private static function directories()
 {
     if (empty(self::$dirs)) {
         $base = __DIR__;
         self::$dirs = array($base);
     }
     return self::$dirs;
 }
Example #3
0
 public static function addPath($argPathList)
 {
     self::$dirs = $argPathList;
 }
Example #4
0
 /**
  * @param list of dirs
  */
 public static function init()
 {
     $dirs = func_get_args();
     self::$dirs = empty($dirs) ? array('.') : $dirs;
     spl_autoload_register(array(__CLASS__, 'loadClass'));
 }