Browse Source

Fixes #2924: added a list of predefined aliases to the guide

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
82bdcdcb94
  1. 8
      docs/guide/basics.md

8
docs/guide/basics.md

@ -75,6 +75,14 @@ a class like `yii\web\Request` can be autoloaded by Yii. If you use a third part
such as Zend Framework, you may define a path alias `@Zend` which refers to its installation such as Zend Framework, you may define a path alias `@Zend` which refers to its installation
directory and Yii will be able to autoload any class in this library. directory and Yii will be able to autoload any class in this library.
The following aliases are predefined by the core framework:
- `@yii` - framework directory.
- `@app` - base path of currently running application.
- `@runtime` - runtime directory.
- `@vendor` - Composer vendor directory.
- `@webroot` - web root directory of currently running web application.
- `@web` - base URL of currently running web application.
Autoloading Autoloading
----------- -----------

Loading…
Cancel
Save