Reference/call a PHTML file from CMS page

Submitted by metaharper - 5 years ago

This will allow you to reference a PHTML file from within Magento's CMS system. It's helpful when you need your pages to be managed over version control or if you would rather edit your code from your favorite IDE. The file path referencing your template file would be "yourpackage/yourtheme/template".

{{ block type="core/template" name="mycustompage" template="mycustompage.phtml" }}
Learn PHP
comments powered by Disqus
Proudly hosted on Digital Ocean