layout file is not loading in magento custom module -


i trying load template file layout in module layout xml file not adding in config.xml .i tried number of solution don't know mistake doing.please me , tell me wrong.i added code below..

indexcontroller.php

    <?php class magemodul_test_indexcontroller extends mage_core_controller_front_action {      public function indexaction()      {           $this->loadlayout();           $this->renderlayout();      } } ?> 

config.xml

<?xml version="1.0"?>     <config>          <modules>             <magemodul_test>               <version>1.0.0</version>             </magemodul_test>          </modules>          <frontend>            <routers>               <magemodultest>                   <use>standard</use>                   <args>                      <module>magemodul_test</module>                      <frontname>test</frontname>                   </args>                </magemodultest>            </routers>            <layout>               <updates>                 <magemodultest>                   <file>test.xml</file>                 </magemodultest>               </updates>             </layout>         </frontend>         <global>              <blocks>                  <test>                       <class>magemodul_test_block</class>                  </test>               </blocks>         </global>     </config> 

block file monblock.php

<?php class magemodul_test_block_monblock extends mage_core_block_template {      public function methodblock()      {                return 'informations block !!' ;      } } 

layout xml file test.xml

<?xml version="1.0"?> <layout version="0.1.0">       <test_index_index>            <reference name="content">                 <block type="test/monblock"  name="afficher_monbloc" template="test/afficher.phtml">            </reference>       </test_index_index> </layout> 

template file afficher.phtml

<?php     echo $this->getmethodblock(); ?> 


Comments