My config code


My TestifrontController.php code

class Urban_Module_TestifrontController extends Mage_Core_Controller_Front_Action
    public function indexAction()

   echo 'hello frontend';


My module.xml code

<?xml version="1.0"?>
<layout version="0.1.0">
        <reference name="content">
            <block type="module/module" name="module" template="module/module.phtml"/>

This module.xml path i have used is app/design/frontend/[package]/default/layout/module.xml . I have the module.phtml file in app/design/frontend/[package]/default/template/module/module.phtml.

The controller works when I navigate to index.php/module/testifront/index but the layout doesn't seem to work.


Your module does not define any blocks, but you use the block type "module/module"

You probably want to replace that with "core/template"


I see you're missing blocks node in your config.xml. Add code given below inside global node


and create block file Module.php which will go inside Urban/Module/Block folder.

In case if you're not going to write your own block functions, your can use block type as block core/template as suggested by fschmengler.

Module.php code will be like this

class Urban_Module_Block_Module extends Mage_Core_Block_Template
//your code here.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.