Skip to content

Commit

Permalink
Merge pull request #220 from elitalon/master
Browse files Browse the repository at this point in the history
Error in View blocks section sample code
  • Loading branch information
markstory committed Mar 15, 2012
2 parents 5a029dd + c0c05a7 commit 66fec0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions en/views.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ un-captured content from the extending view. Assuming our view file has a

// app/View/Posts/view.ctp
<?php
$this->extend('Common/view');
$this->extend('/Common/view');

$this->assign('title', $post)

Expand Down Expand Up @@ -115,8 +115,8 @@ more than once in a view file will override the parent view that will be
processed next::

<?php
$this->extend('Common/view');
$this->extend('Common/index');
$this->extend('/Common/view');
$this->extend('/Common/index');

The above will result in ``/Common/index.ctp`` being rendered as the parent view
to the current view.
Expand Down

0 comments on commit 66fec0a

Please sign in to comment.