Commit ee73a4bc by Alexander Makarov

Merge pull request #759 from lancecoder/patch-3

Update apps-basic.md
parents 96f5b7d8 ed7229c7
...@@ -20,11 +20,10 @@ curl -s http://getcomposer.org/installer | php ...@@ -20,11 +20,10 @@ curl -s http://getcomposer.org/installer | php
You can then install the Bootstrap Application using the following command: You can then install the Bootstrap Application using the following command:
~~~ ~~~
php composer.phar create-project --stability=dev yiisoft/yii2-app-basic yii-basic php composer.phar create-project --stability=dev yiisoft/yii2-app-basic /path/to/yii-application
~~~ ~~~
Now you should be able to access the application using the URL `http://localhost/yii-basic/web/`, Now set document root directory of your Web server to /path/to/yii-application/web and you should be able to access the application using the URL `http://localhost/`.
assuming `yii-basic` is directly under the document root of your Web server.
Directory structure Directory structure
------------------- -------------------
...@@ -158,4 +157,4 @@ For example, to use markdown helper you need to add `michelf/php-markdown`. All ...@@ -158,4 +157,4 @@ For example, to use markdown helper you need to add `michelf/php-markdown`. All
[packagist.org](https://packagist.org/) so feel free to browse the website for useful code. [packagist.org](https://packagist.org/) so feel free to browse the website for useful code.
After your `composer.json` is changed you can run `php composer.phar update`, wait till packages are downloaded and After your `composer.json` is changed you can run `php composer.phar update`, wait till packages are downloaded and
installed and then just use them. Autoloading of classes will be handled automatically. installed and then just use them. Autoloading of classes will be handled automatically.
\ No newline at end of file
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