Browse files

Merge pull request #423 from CCadere/patch-1

Update en/views.rst
  • Loading branch information...
lorenzo committed Nov 7, 2012
2 parents 3e4bab4 + d454cec commit 2af29f074bf5d4d1f1e25b66a6aa1f39e90361e1
Showing with 4 additions and 4 deletions.
  1. +4 −4 en/views.rst
@@ -107,7 +107,7 @@ un-captured content from the extending view. Assuming our view file has a
echo h($post['Post']['body']);
The post view above shows how you can extend a view, and populate a set of
-blocks. Any content not in already in a defined block will captured and put
+blocks. Any content not already in a defined block will captured and put
into a special block named ``content``. When a view contains a call to
``extend()`` execution continues to the bottom of the current view file.
Once its complete, the extended view will be rendered. Calling ``extend()``
@@ -500,11 +500,11 @@ like the following::
<h2>Latest Posts</h2>
<?php $posts = $this->requestAction('posts/index/sort:created/direction:asc/limit:5'); ?>
- <?php foreach ($posts as $post): ?>
- <li><?php echo $post['Post']['title']; ?></li>
- </ol>
+ <?php foreach ($posts as $post): ?>
+ <li><?php echo $post['Post']['title']; ?></li>
<?php endforeach; ?>
+ </ol>
Caching Elements

0 comments on commit 2af29f0

Please sign in to comment.