In my controller method I am printing one simple message.
public function indexAction()
{
echo "Hello,, Welcome to IndexController...";
}
But, that message is displaying on a blank page. I want to add header and footer to that page and my message should be displayed in between.
Can anyone help me? Which steps should I follow to achieve this?
Following is the code I have added in local.xml:
<emq_mymodule1_index_index> <!-- frontendname_controllername_actionname -->
<reference name="content">
<block type="core/template" name="abc" template="abcd/demo.phtml" />
</reference>
</emq_mymodule1_index_index>