Developing a simple custom module, and the hardest part is getting the template to load in the admin. I'm sure I'm missing something simple (but important).
The template will not load. I believe all of the layout / config is loading properly.
The module controller is firing (proven via
var_dump), and it appears that the layout is loading.
var_dump(Mage::getSingleton('core/layout')->getUpdate()->getHandles()); produces one of the handles that seems correct:
app/code/local/mycompany/mymodule/etc/config.xml, I've got this bit (among others):
<adminhtml> <layout> <updates> <mycompany> <file>mymodule.xml</file> </mycompany> </updates> </layout> </adminhtml>
app/design/adminhtml/default/default/layout/mymodule.xml, I've got this:
<layout> <mycompany_adminhtml_mymodule_index> <update handle="mycompany_mymodule_index" /> <reference name="content"> <block type="adminhtml/template" name="mymodule" template="mymodule/index.phtml" /> </reference> </mycompany_adminhtml_mymodule_index> </layout>
The template is located at
and contains some basic text just be able to prove if it loads.
I've got cache completely disabled (development environment), and have Magento in developer mode with no errors being thrown.
What am I missing? I've been able to prove that the layout file (mymodule.xml) is loading, but for some reason I cannot get the template file to load.