|
@@ -38,6 +38,26 @@ The minimum requirement by this project template that your Web server supports P
|
|
|
INSTALLATION
|
|
INSTALLATION
|
|
|
------------
|
|
------------
|
|
|
|
|
|
|
|
|
|
+### Install via Composer
|
|
|
|
|
+
|
|
|
|
|
+If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions
|
|
|
|
|
+at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).
|
|
|
|
|
+
|
|
|
|
|
+You can then install this project template using the following command:
|
|
|
|
|
+
|
|
|
|
|
+~~~
|
|
|
|
|
+php composer.phar global require "fxp/composer-asset-plugin:^1.2.0"
|
|
|
|
|
+php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic
|
|
|
|
|
+~~~
|
|
|
|
|
+
|
|
|
|
|
+Now you should be able to access the application through the following URL, assuming `basic` is the directory
|
|
|
|
|
+directly under the Web root.
|
|
|
|
|
+
|
|
|
|
|
+~~~
|
|
|
|
|
+http://localhost/basic/web/
|
|
|
|
|
+~~~
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
### Install from an Archive File
|
|
### Install from an Archive File
|
|
|
|
|
|
|
|
Extract the archive file downloaded from [yiiframework.com](http://www.yiiframework.com/download/) to
|
|
Extract the archive file downloaded from [yiiframework.com](http://www.yiiframework.com/download/) to
|
|
@@ -59,26 +79,6 @@ http://localhost/basic/web/
|
|
|
~~~
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
-### Install via Composer
|
|
|
|
|
-
|
|
|
|
|
-If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions
|
|
|
|
|
-at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).
|
|
|
|
|
-
|
|
|
|
|
-You can then install this project template using the following command:
|
|
|
|
|
-
|
|
|
|
|
-~~~
|
|
|
|
|
-php composer.phar global require "fxp/composer-asset-plugin:~1.1.1"
|
|
|
|
|
-php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic
|
|
|
|
|
-~~~
|
|
|
|
|
-
|
|
|
|
|
-Now you should be able to access the application through the following URL, assuming `basic` is the directory
|
|
|
|
|
-directly under the Web root.
|
|
|
|
|
-
|
|
|
|
|
-~~~
|
|
|
|
|
-http://localhost/basic/web/
|
|
|
|
|
-~~~
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
CONFIGURATION
|
|
CONFIGURATION
|
|
|
-------------
|
|
-------------
|
|
|
|
|
|