Commit 560ad04e by Qiang Xue

Merge pull request #6989 from softark/docs-guide-start-fix

Docs guide start small fixex [ci skip]
parents 454e4c81 d9fcfcb7
...@@ -55,7 +55,7 @@ The name after the `action` prefix maps to the action's ID. ...@@ -55,7 +55,7 @@ The name after the `action` prefix maps to the action's ID.
When it comes to naming your actions, you should understand how Yii treats action IDs. Action IDs are always When it comes to naming your actions, you should understand how Yii treats action IDs. Action IDs are always
referenced in lower case. If an action ID requires multiple words, they will be concatenated by dashes referenced in lower case. If an action ID requires multiple words, they will be concatenated by dashes
(e.g., `create-comment`). Action method names are mapped to action IDs by removing any dashes from the IDs, (e.g., `create-comment`). Action method names are mapped to action IDs by removing any dashes from the IDs,
capitalizing the first letter in each word, and prefixing the resulting with `action`. For example, capitalizing the first letter in each word, and prefixing the resulting string with `action`. For example,
the action ID `create-comment` corresponds to the action method name `actionCreateComment`. the action ID `create-comment` corresponds to the action method name `actionCreateComment`.
The action method in our example takes a parameter `$message`, whose value defaults to `"Hello"` (in exactly The action method in our example takes a parameter `$message`, whose value defaults to `"Hello"` (in exactly
...@@ -74,7 +74,7 @@ Creating a View <a name="creating-view"></a> ...@@ -74,7 +74,7 @@ Creating a View <a name="creating-view"></a>
--------------- ---------------
[Views](structure-views.md) are scripts you write to generate a response's content. [Views](structure-views.md) are scripts you write to generate a response's content.
For the "Hello" task, you will create a `say` view that prints the `message` parameter received from the action method, and passed by the action to the view: For the "Hello" task, you will create a `say` view that prints the `message` parameter received from the action method:
```php ```php
<?php <?php
......
...@@ -125,9 +125,9 @@ Configuring Web Servers <a name="configuring-web-servers"></a> ...@@ -125,9 +125,9 @@ Configuring Web Servers <a name="configuring-web-servers"></a>
The application installed according to the above instructions should work out of box with either The application installed according to the above instructions should work out of box with either
an [Apache HTTP server](http://httpd.apache.org/) or an [Nginx HTTP server](http://nginx.org/), on an [Apache HTTP server](http://httpd.apache.org/) or an [Nginx HTTP server](http://nginx.org/), on
Windows, Mac OS X, or Linux running PHP 5.4 or higher. Yii 2.0 is also compatible with facebooks Windows, Mac OS X, or Linux running PHP 5.4 or higher. Yii 2.0 is also compatible with facebook's
[HHVM](http://hhvm.com/) however there are some edge cases where HHVM behaves different than native [HHVM](http://hhvm.com/). However, there are some edge cases where HHVM behaves different than native
PHP so you have to take some extra care when using HHVM. PHP, so you have to take some extra care when using HHVM.
On a production server, you may want to configure your Web server so that the application can be accessed On a production server, you may want to configure your Web server so that the application can be accessed
via the URL `http://www.example.com/index.php` instead of `http://www.example.com/basic/web/index.php`. Such configuration via the URL `http://www.example.com/index.php` instead of `http://www.example.com/basic/web/index.php`. Such configuration
......
...@@ -7,7 +7,7 @@ upon your configuration. This section will introduce the application's built-in ...@@ -7,7 +7,7 @@ upon your configuration. This section will introduce the application's built-in
how the code is organized, and how the application handles requests in general. how the code is organized, and how the application handles requests in general.
> Info: For simplicity, throughout this "Getting Started" tutorial, it's assumed that you have set `basic/web` > Info: For simplicity, throughout this "Getting Started" tutorial, it's assumed that you have set `basic/web`
as the document root of your Web server, and configured, the URL for accessing as the document root of your Web server, and configured the URL for accessing
your application to be `http://hostname/index.php` or something similar. your application to be `http://hostname/index.php` or something similar.
For your needs, please adjust the URLs in our descriptions accordingly. For your needs, please adjust the URLs in our descriptions accordingly.
......
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