Skip to content

Fix documentation typos - fixes codeguy/Slim#809 #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 05-request/03-headers/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<?php
$app = new \Slim\Slim();
Expand Down
20 changes: 10 additions & 10 deletions 06-response/06-helpers/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -47,29 +47,29 @@ return a boolean value:
<?php
$res = $app->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();
2 changes: 1 addition & 1 deletion 07-view/04-data/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ status: live
<div class="alert alert-info">
<strong>Heads Up!</strong> 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 <a href="/pages/view-rendering-templates">Rendering Templates</a>.
See <a href="/#Rendering">Rendering Templates</a>.
</div>

The view object's `setData()` and `appendData()` methods inject data into the view object; the injected data is
Expand Down