> Note: A little bit of Composer knowledge is required to continue. If you don't know how to use composer yet, please take time to read [Composer Guide](https://getcomposer.org/doc/00-intro.md).
> Info: Even though the configuration could be kept in the `index.php` file it is recommended
> to have it separately. This way it can be used for console application also as it is shown below.
> 信息:尽管配置可以保存在 `index.php` 文件中,建议单独使用它。
> 这样它也可以用于控制台应用程序,如下所示。
您的项目现在已经准备进行编码了。尽管由您决定项目目录结构,只要您遵守命名空间即可。
@ -111,22 +111,22 @@ micro-app/
└── SiteController.php
```
If you have not set up the web server yet, you may want to take a look at [web server configuration file examples](start-installation.md#configuring-web-servers).
Another options is to use the `yii serve` command which will use the PHP build-in web server. You can run
it from the `micro-app/` directory via:
如果您尚未设置 Web 服务器,则可能需要查看[Web服务器配置文件示例](start-installation.md#configuring-web-servers)。
另一种选择是使用 `yii serve` 命令,它将使用 PHP 内置 web 服务器。
您可以通过以下方式从 `micro-app /` 目录运行它:
vendor/bin/yii serve --docroot=./web
Opening the application URL in a browser should now print "Hello World!" which has been returned in the `SiteController::actionIndex()`.