本文整理汇总了PHP中Autoload::vd方法的典型用法代码示例。如果您正苦于以下问题:PHP Autoload::vd方法的具体用法?PHP Autoload::vd怎么用?PHP Autoload::vd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Autoload
的用法示例。
在下文中一共展示了Autoload::vd方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
/**
* 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');
}