From 4c47938fd1d55d73ec74ca3df5064a07b40376d6 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Mon, 29 Sep 2014 16:06:47 +0400 Subject: [PATCH] Adjusted framework readme --- framework/README.md | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/framework/README.md b/framework/README.md index 7b83c57910..4a86301749 100644 --- a/framework/README.md +++ b/framework/README.md @@ -12,26 +12,14 @@ The preferred way to install the Yii framework is through [composer](http://getc Either run ``` -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" +composer global require "fxp/composer-asset-plugin:1.0.0-beta2" +composer require --prefer-dist "yiisoft/yii2 *" ``` -`2.0.0-rc` versions may be replaced by `dev-master`, to obtain development version. or add ```json -"yiisoft/yii2": "2.0.0-rc", -"yiisoft/yii2-composer": "2.0.0-rc" +"yiisoft/yii2": "*", ``` 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); -```