From 73bf61034941d0707a9461fc230bb9408553bf8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Mon, 21 Apr 2014 18:54:43 +0200 Subject: [PATCH 1/4] Update page.md --- 05-request/03-headers/page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/05-request/03-headers/page.md b/05-request/03-headers/page.md index 6ec09f5..904cd0f 100644 --- a/05-request/03-headers/page.md +++ b/05-request/03-headers/page.md @@ -5,7 +5,7 @@ status: live A Slim application will automatically parse all HTTP request headers. You can access the request headers using the request object's public `headers` property. The `headers` property is an instance of `\Slim\Helper\Set`, meaning -it provides a simple, standardized interface to interactive with the HTTP request headers. +it provides a simple, standardized interface to interact with the HTTP request headers. Date: Mon, 21 Apr 2014 18:55:52 +0200 Subject: [PATCH 2/4] Update page.md --- 06-response/06-helpers/page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/06-response/06-helpers/page.md b/06-response/06-helpers/page.md index fa30747..a2e4047 100644 --- a/06-response/06-helpers/page.md +++ b/06-response/06-helpers/page.md @@ -7,7 +7,7 @@ The response object provides helper methods to inspect and interact with the und ### Finalize -The response object’s `finalize()` method returns a numeric array of `[status, header, body]`. The status is +The response object’s `finalize()` method returns an array of `[status, header, body]`. The status is an integer; the header is an iterable data structure; and the body is a string. Were you to create a new `\Slim\Http\Response` object in your Slim application or its middleware, you would call the response object's `finalize()` method to produce the status, header, and body for the underlying HTTP response. From 580770219aa0426436fad78de3868374613f274d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Mon, 21 Apr 2014 18:58:48 +0200 Subject: [PATCH 3/4] Update page.md --- 07-view/04-data/page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/07-view/04-data/page.md b/07-view/04-data/page.md index c99ba0a..f2eda40 100644 --- a/07-view/04-data/page.md +++ b/07-view/04-data/page.md @@ -6,7 +6,7 @@ status: live
Heads Up! Rarely will you set or append data directly on the view object. Usually, you pass data to the view with the Slim application's `render()` method. - See Rendering Templates. + See Rendering Templates.
The view object's `setData()` and `appendData()` methods inject data into the view object; the injected data is From 675f5878a1d46346710da0496598e7120b1a3bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Mon, 21 Apr 2014 19:03:47 +0200 Subject: [PATCH 4/4] Update page.md --- 06-response/06-helpers/page.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/06-response/06-helpers/page.md b/06-response/06-helpers/page.md index a2e4047..561f686 100644 --- a/06-response/06-helpers/page.md +++ b/06-response/06-helpers/page.md @@ -47,29 +47,29 @@ return a boolean value: response; - //Is this an informational response? + // Is this an 1xx informational response? $res->isInformational(); - //Is this a 200 OK response? + // Is this a 200 OK response? $res->isOk(); - //Is this a 2xx successful response? + // Is this a 2xx successful response? $res->isSuccessful(); - //Is this a 3xx redirection response? + // Is this a 3xx redirection response? $res->isRedirection(); - //Is this a specific redirect response? (301, 302, 303, 307) + // Is this a specific redirect response? (301, 302, 303, 307) $res->isRedirect(); - //Is this a forbidden response? + // Is this a forbidden response? $res->isForbidden(); - //Is this a not found response? + // Is this a not found response? $res->isNotFound(); - //Is this a client error response? + // Is this a client error response? $res->isClientError(); - //Is this a server error response? + // Is this a server error response? $res->isServerError();