Created
October 28, 2009 15:33
-
-
Save tobiastom/220546 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Parent Template</h1> | |
<p><?php echo $content ?></p> | |
<?php print $this->block('footer') ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->extend = 'Default.html'; | |
$this->block('footer')->prefix = '<ol>'; | |
$this->block('footer')->suffix = '</ol>'; | |
?> | |
<h2>Template A content</h2> | |
<?php echo $this->block('footer')->start ?> | |
<li><a href="#">blah</a></li> | |
<li><a href="#">blah 2</a></li> | |
<?php echo $this->block('footer')->end ?> | |
<p>my content</p> | |
<?php echo $this->partial('TemplateB.html')?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Template B content</h2> | |
<?php echo $this->block('footer')->start ?> | |
<li><a href="#">just some link</a></li> | |
<?php echo $this->block('footer')->end ?> | |
<p>my second content</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment