Tag Archives: call phtml file in cms page

How to call phtml file in cms page in magento

Go to Admin >> CMS >> Pages click on it. Now Edit or Add New page go to content tab paste the below code and save


{{block type="core/template" name="a-name" template="cms/yourefilename.phtml"}}

inside template=”” you can write your file path. and in name=”” you can give proper and unique name , in type=”” you can write your module directory .

If you want to call through XML Go to Design tab and paste below code .

<reference name="content">
<block type="core/template" name="unique-name" template="cms/yourefilename.phtml"/>
</reference>