Skip to content

Commit

Permalink
Corrected some grammar in the JsonView class doc blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Crowe committed Sep 18, 2013
1 parent eea56d3 commit 878e599
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cake/View/JsonView.php
Expand Up @@ -19,7 +19,7 @@
*
* By setting the '_serialize' key in your controller, you can specify a view variable
* that should be serialized to JSON and used as the response for the request.
* This allows you to omit views + layouts, if your just need to emit a single view
* This allows you to omit views and layouts if you just need to emit a single view
* variable as the JSON response.
*
* In your controller, you could do the following:
Expand All @@ -42,7 +42,7 @@
* `{"posts": [...], "users": [...]}`
*
* If you don't use the `_serialize` key, you will need a view. You can use extended
* views to provide layout like functionality.
* views to provide layout-like functionality.
*
* You can also enable JSONP support by setting parameter `_jsonp` to true or a string to specify
* custom query string paramater name which will contain the callback function name.
Expand All @@ -54,7 +54,7 @@ class JsonView extends View {

/**
* JSON views are always located in the 'json' sub directory for a
* controllers views.
* controller's views.
*
* @var string
*/
Expand Down Expand Up @@ -89,7 +89,7 @@ public function loadHelpers() {
*
* ### Special parameters
* `_serialize` To convert a set of view variables into a JSON response.
* It's value can be a string for single variable name or array for multiple names.
* Its value can be a string for single variable name or array for multiple names.
* You can omit the`_serialize` parameter, and use a normal view + layout as well.
* `_jsonp` Enables JSONP support and wraps response in callback function provided in query string.
* - Setting it to true enables the default query string parameter "callback".
Expand Down

0 comments on commit 878e599

Please sign in to comment.