Skip to content

Instantly share code, notes, and snippets.

@tobiastom
Created October 28, 2009 15:33
Show Gist options
  • Save tobiastom/220546 to your computer and use it in GitHub Desktop.
Save tobiastom/220546 to your computer and use it in GitHub Desktop.
<h1>Parent Template</h1>
<p><?php echo $content ?></p>
<?php print $this->block('footer') ?>
<?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')?>
<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