Beispiel #1
0
 /**
  * This method initialize Autoload class. 
  * 
  * It defines method to call to find given class and register several system critical paths.
  * It must be called in in the early stages of booting the application.
  * 
  * @param null
  * @return null
  * @see Boot
  */
 public static function init()
 {
     spl_autoload_register('Autoload::load');
     $c = Config::getInstance();
     self::$rd = $c->root_dir;
     self::$vd = self::$rd . $c->vendors_dir;
     self::$md = self::$rd . $c->models_dir;
     self::addDir(self::$rd . '/includes');
     self::addDir(self::$vd . '/widgets');
     self::addDir(self::$rd . '/includes/widgets');
     self::addDir(self::$rd . '/includes/fs');
     self::addDir(self::$rd . '/includes/user');
     self::addDir(self::$rd . '/includes/exceptions');
     self::addDir(self::$rd . '/includes/interfaces');
     self::addDir(self::$rd . '/includes/mailer');
     self::addDir(self::$vd . '/includes');
 }