How to Use PHTML File in CMS or Static Block
In Magento CMS or Static block, if you want to add PHP code then you can just call any custom .phtml file by using following code. Like here I am including my_custom.phtml.
This is equivalent to following layout tag:
{{block type="core/template" name="myCustom" template="cms/my_custom.phtml"}}
|
<block type="core/template" name="myCustom" template="cms/my_custom.phtml">
Comments
Post a Comment