How I can call a phtml file in Magento CMS page

You can not call a phtml file by writing PHP code in Magento admin panel as Magento admin panel do not support this. To enable PHTML/ PHP code you can write a file called PHTML file by doing the following method

{{ block type="core/template" name="mycstompage" template="SkyMagento/mycustompage.phtml" }}

inside template = "" allows you to write your path. and in the name = "", you can give a good and unique name type = "", you can also write your module directory (for example: - the client / account if you call login.phtml file).

Another way to call a phtml file. You can use the layout or xml file to do so. I'm going mycstompage.phtml attached file that reside in the folder of my mycustompage  template inside SkyMagento folder then I write the code given below

<Reference name="content">
 <Block type="core/template" name="mycustompage"  template="SkyMagento/mycustompage.phtml" />
 </ Reference >

3 thoughts on “How I can call a phtml file in Magento CMS page”

  • outlet hermes di jakarta
    outlet hermes di jakarta September 25, 2014 at 8:46 am

    Hey thеre ԝould you mind letting me know whiϲh webhost you'rе utilizing?

    I've loaded yοur blog in 3 diffеrent internet browsers and I must saү thiѕ
    blog loads a lot quicker tҺen most. Can you recommend a good web hosting provider аt
    ɑ fair price? Τhanks, I apprecciate it!

    Reply
  • jack wolfskin outlet erlangen
    jack wolfskin outlet erlangen September 26, 2014 at 12:33 pm

    Нi tҺere, just wanted to saʏ, I liked thіs post.
    Ιt ԝas inspiring. Keеp օn posting!

    Reply
Leave a Reply