Magento – Configure homepage to use phtml file

magento-1.9

I am new to magento. I am using version 1.9.1. How can i call a phtml page as home page?

So far im making changes in cms->homepage->design im changing the html code there.
But now i want to include php in the homepage src code. How can i do that?

Best Answer

It's very simple, don't need to develop extension for it.

Just go to your home page (cms page) and add this line anywhere you like:

{{block type="core/template" template="theme/your_path/file_name.phtml"  name="myname"}}

However, it will depend what kind of info you will be adding in this file.

Related Topic