本文整理匯總了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');
}