Created
March 5, 2013 17:54
-
-
Save cobbman/5092412 to your computer and use it in GitHub Desktop.
Magento: Add a layout block into a .phtml file. Display a CMS Block in a phtml file:
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 echo $this->getChildHtml('block_name_tag'); ?> | |
<?php | |
# NOTES: | |
# replace block_name_tag with the name of the block | |
# Layout blocks are found under the layout folder. All XML files. | |
# An example of a block element is: | |
# <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml"></block> | |
# note that there are differnt types of blocks. | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment