php - Magento: My custom extension don't load template file -


i have created extension. it's working fine. problem is, won't load template file. don't know why? so, guys please tell me i'm wrong.

app/etc/modules/custommod_search.xml

<?xml version="1.0"?> <config>     <modules>         <custommod_search>             <active>true</active>             <codepool>local</codepool>         </custommod_search>     </modules> </config> 

app/code/local/custommod/search/

etc/config.xml

<?xml version="1.0"?> <config>     <modules>         <custommod_search>             <version>0.1.0</version>         </custommod_search>     </modules>     <frontend>         <routers>             <search>                 <use>standard</use>                 <args>                     <module>custommod_search</module>                     <frontname>search</frontname>                 </args>             </search>         </routers>         <layout>             <updates>                 <search>                     <file>search.xml</file>                 </search>             </updates>         </layout>     </frontend>     <global>         <blocks>             <search>                 <class>custommod_search_block</class>             </search>         </blocks>     </global> </config> 

block/search.php

class custommod_search_block_search extends mage_core_block_template {  } 

controllers/indexcontroller.php

class custommod_search_indexcontroller extends mage_core_controller_front_action {     public function indexaction()     {         $this->loadlayout();         $this->renderlayout();     } } 

app/design/frontend/rwd/default/

layout/search.xml

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

template/search/search.phtml

<h1>hello php</h1> 

but when open url http://localhost/magento/index.php/search/index/index

the opened page dosn't have

hello php

content in content area.

i enabled template path hint too, won't show search.phtml template anywhere. tried <block type="core/template" name="dropdown.search" template="search/search.phtml" /> nothing happened.

please friends me. tell me i'm wrong. or suggest me right way if i'm wrong.

thanks.


Comments