How to call a .phtml file in magento cms page ?

How to call a .phtml file in magento cms page?

{{ block type=”catalog/product_list” name=”product_list” template=”catalog/product/list.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 also(e.g:- customer/form_login if you are calling mini.login.phtml file).

One more way to call a .phtml file. You can use your layout or xml file to do. For example i am going to attached home.phtml file which reside in cms folder of my thmeme template then I am writing the code given below

<reference name=”content”>
<block type=”customer/form_login” name=”mini_login” template=”customer/form/mini.login.phtml” />
</reference>

 

Hope it will help you.