Browse Source

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

Docs guide start small fixex [ci skip]
tags/2.0.3
Qiang Xue 10 years ago
parent
commit
560ad04e0c
  1. 4
      docs/guide/start-hello.md
  2. 6
      docs/guide/start-installation.md
  3. 2
      docs/guide/start-workflow.md

4
docs/guide/start-hello.md

@ -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
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,
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 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>
---------------
[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

6
docs/guide/start-installation.md

@ -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
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
[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.
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
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
via the URL `http://www.example.com/index.php` instead of `http://www.example.com/basic/web/index.php`. Such configuration

2
docs/guide/start-workflow.md

@ -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.
> 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.
For your needs, please adjust the URLs in our descriptions accordingly.

Loading…
Cancel
Save