Commit c6529b66 by Evgeniy Tkachenko

Update README.md

Updated instructions for the current reality.
parent d1dbda5c
...@@ -12,13 +12,26 @@ The preferred way to install the Yii framework is through [composer](http://getc ...@@ -12,13 +12,26 @@ The preferred way to install the Yii framework is through [composer](http://getc
Either run Either run
``` ```
php composer.phar require --prefer-dist "yiisoft/yii2 *" php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta2"
php composer.phar require --prefer-dist "yiisoft/yii2 2.0.0-rc" "yiisoft/yii2-composer 2.0.0-rc"
``` ```
`2.0.0-rc` versions may be replaced by `dev-master`, to obtain development version.
or add or add
```json ```json
"yiisoft/yii2": "*" "yiisoft/yii2": "2.0.0-rc",
"yiisoft/yii2-composer": "2.0.0-rc"
``` ```
to the require section of your composer.json. to the require section of your composer.json.
Next, you should modify the entry script of your app system by including the following code at the beginning:
```php
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
$yiiConfig = require(__DIR__ . '/../config/yii/web.php');
new yii\web\Application($yiiConfig);
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment