I created Simple Hello world Module But it's not Display Front End
Also I can't Understand in test.xml can you please any one explain it
app/code/local/Manoj/Test/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Manoj_Test>
<version>0.1.0</version>
</Manoj_Test>
</modules>
<frontend>
<routers>
<test>
<use>standard</use>
<args>
<module>Manoj_Test</module>
<frontName>test</frontName>
</args>
</test>
</routers>
<layout>
<updates>
<test>
<file>test.xml</file>
</test>
</updates>
</layout>
</frontend>
<global>
<blocks>
<test>
<class>Manoj_Test_Block</class>
</test>
</blocks>
<helpers>
<test>
<class>Manoj_Test_Helper</class>
</test>
</helpers>
</global>
</config>
app/design/frontend/default/Manoj/layout/test.xml
<?xml version="1.0"?>
<layout version = "1.0"?>
<test_index_index>
<reference name="content">
<block type="test/test" name="test" template="test/test.phtml"/>
</reference>
</test_index_index>
</layout>
app/code/local/Manoj/Test/Block/test.php
<?php
class Manoj_Test_Block_Test extends Mage_Core_Block_Template{
public function getContent(){
return "My First Module";
}
}
app/design/frontend/default/Manoj/template/test/test.phtml
<?php
echo $this->getContent();
?>
app/code/local/Manoj/Test/controllers/IndexController.php
<?php
class Manoj_Test_IndexController extends Mage_Core_Controller_Front_Action{
public function indexAction()
{
$this->loadLayout(); //This function read all layout files and loads them in memory
$this->renderLayout(); //This function processes and displays all layout phtml and php files.
}
}
Manoj_Test.xml
<?xml version="1.0"?>
<config>
<modules>
<Manoj_Test>
<active>true</active>
<codePool>local</codePool>
</Manoj_Test>
</modules>
</config>
app/code/local/Manoj/Test/Block/Test.php
the file name must be capital as added in classManoj_Test_Block_Test
also check the error log for errors. and make sure yourcache
isdiabled