Commit 25bd905e by Qiang Xue

Finished cookie and session section.

parent e6e83998
...@@ -52,7 +52,7 @@ Handling Requests ...@@ -52,7 +52,7 @@ Handling Requests
* [Routing](runtime-routing.md) * [Routing](runtime-routing.md)
* [Requests](runtime-requests.md) * [Requests](runtime-requests.md)
* [Responses](runtime-responses.md) * [Responses](runtime-responses.md)
* **TBD** [Sessions and Cookies](runtime-sessions-cookies.md) * [Sessions and Cookies](runtime-sessions-cookies.md)
* [URL Parsing and Generation](runtime-url-handling.md) * [URL Parsing and Generation](runtime-url-handling.md)
* [Handling Errors](runtime-handling-errors.md) * [Handling Errors](runtime-handling-errors.md)
* [Logging](runtime-logging.md) * [Logging](runtime-logging.md)
......
...@@ -3,8 +3,8 @@ Requests ...@@ -3,8 +3,8 @@ Requests
Requests made to an application are represented in terms of [[yii\web\Request]] objects which provide information Requests made to an application are represented in terms of [[yii\web\Request]] objects which provide information
such as request parameters, HTTP headers, cookies, etc. For a given request, you can get access to the corresponding such as request parameters, HTTP headers, cookies, etc. For a given request, you can get access to the corresponding
request object via the `request` [application component](structure-application-components.md). In this section, request object via the `request` [application component](structure-application-components.md) which is an instance
we will describe how you can make use of this component in your applications. of [[yii\web\Request]], by default. In this section, we will describe how you can make use of this component in your applications.
## Request Parameters <a name="request-parameters"></a> ## Request Parameters <a name="request-parameters"></a>
......
...@@ -5,8 +5,9 @@ When an application finishes handling a [request](runtime-requests.md), it gener ...@@ -5,8 +5,9 @@ When an application finishes handling a [request](runtime-requests.md), it gener
and sends it to the end user. The response object contains information such as the HTTP status code, HTTP headers and body. and sends it to the end user. The response object contains information such as the HTTP status code, HTTP headers and body.
The ultimate goal of Web application development is essentially to build such response objects upon various requests. The ultimate goal of Web application development is essentially to build such response objects upon various requests.
In most cases you should mainly deal with the `response` [application component](structure-application-components.md). In most cases you should mainly deal with the `response` [application component](structure-application-components.md)
However, Yii also allows you to create your own response objects and send them to end users. which is an instance of [[yii\web\Response]], by default. However, Yii also allows you to create your own response
objects and send them to end users as we will explain in the following.
In this section, we will describe how to compose and send responses to end users. In this section, we will describe how to compose and send responses to end users.
......
...@@ -51,7 +51,7 @@ Installing from an Archive File <a name="installing-from-archive-file"></a> ...@@ -51,7 +51,7 @@ Installing from an Archive File <a name="installing-from-archive-file"></a>
Installing Yii from an archive file involves three steps: Installing Yii from an archive file involves three steps:
1. Download the archive file from [yiiframework.com](https://github.com/yiisoft/yii2/releases/download/2.0.0-rc/yii-basic-app-2.0.0-rc.tgz). 1. Download the archive file from [yiiframework.com](http://www.yiiframework.com/download/).
2. Unpack the downloaded file to a Web-accessible folder. 2. Unpack the downloaded file to a Web-accessible folder.
3. Modify the `config/web.php` file by entering a secret key for the `cookieValidationKey` configuration item 3. Modify the `config/web.php` file by entering a secret key for the `cookieValidationKey` configuration item
(this is done automatically if you are installing Yii using Composer): (this is done automatically if you are installing Yii using Composer):
......
...@@ -30,7 +30,7 @@ runtime-bootstrapping.md | Yes ...@@ -30,7 +30,7 @@ runtime-bootstrapping.md | Yes
runtime-routing.md | Yes runtime-routing.md | Yes
runtime-requests.md | Yes runtime-requests.md | Yes
runtime-responses.md | Yes runtime-responses.md | Yes
runtime-sessions-cookies.md | runtime-sessions-cookies.md | Yes
runtime-url-handling.md | runtime-url-handling.md |
runtime-handling-errors.md | runtime-handling-errors.md |
runtime-logging.md | runtime-logging.md |
......
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