Skip to content

Commit

Permalink
Fix double var typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Jan 26, 2017
1 parent ddf3070 commit 07b92db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/views/json-and-xml-views.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ JSON response. This is a situation where a view file would be useful::
}

// View code - src/Template/Articles/json/index.ctp
foreach ($articles as &$$article) {
foreach ($articles as &$article) {
unset($article->generated_html);
}
echo json_encode(compact('articles'));
Expand Down

0 comments on commit 07b92db

Please sign in to comment.