I have succesfully created a custom module and added menu also on clicking it redirects to the controller index action where it displays the header and footer section , but I didn't figure out how can I add some phtml file to it . I basically want to show data from my custom table there .

This is etc/config.xml file

<?xml version="1.0"?>
            <catalog module="adminhtml">
                    <regionbased module="regionbased">

This is my Admin side controller Regionbased/controllers/Adminhtml/IndexController.php

class Ilogix_Regionbased_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action {

     * Admin controller index action
     * @access public
     * @return void

    public function indexAction() {


this is design/adminhtml/default/default/layout/regionbased.xml file

    <block type="core/template" output="toHtml" name="templateBlock" template="regionbased/regionbased.phtml"></block>

This is phtml file



I am not able to figure out how can i access this phtml file when the indexcontrollers index method get called .

Looking forward for your help .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.