Created
February 29, 2012 09:10
-
-
Save monsat/1939348 to your computer and use it in GitHub Desktop.
Side Bar View Block in view template
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
// app/View/Product/view.ctp | |
<?php $this->extend('Common/sidebar-page'); ?> | |
<?php $this->start('related'); ?> | |
<p>Other items related to <?php echo h($product['Product']['name']); ?>:</p> | |
<?php echo $this->element('product/related', array('related' => $product['RelatedProducts'])); | |
<?php $this->end(); ?> | |
<h1><?php echo h($product['Product']['description']); ?></h1> | |
// More product details below. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://mark-story.com/posts/view/view-inheritance-in-cakephp