Browse Source

autoloader draft docs

tags/2.0.0-beta
Alexander Makarov 12 years ago
parent
commit
45020ebc72
  1. 19
      docs/autoloader.md

19
docs/autoloader.md

@ -0,0 +1,19 @@
Yii2 class loader
=================
Yii 2 class loader is PSR-0 compliant. That means it can handle most of the PHP
libraries and frameworks out there.
In order to autoload a library you need to set a root alias for it.
PEAR-style libraries
--------------------
```php
\Yii::setAlias('@Twig', '@app/vendors/Twig');
```
References
----------
- YiiBase::autoload
Loading…
Cancel
Save