How can i call a phtml file in magento cms page

To call a pthml write the following code.

{{block type=”core/template” name=”template-name” template=”cms/home.phtml”}}

template -> You can write your file path.
name -> You can give proper and unique name.
type -> You can write your module directory.

Another way, you can use your layout or xml file to do.

For example, please check below code.

<reference name=”content”>
<block type=”core/template” name=”homepage” template=”cms/homepage.phtml” />


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s