I’m trying to build out an admin interface for a module I’m building in Magento. I cannot for the life of me get this bloatware to load a god damn template. The Magento forums have no support or participation whatsoever that I can see, so I’m turning here to see if anyone has dealt with this thing. And for the record, I think I’ve found a PHP application dumber than smarty. About the only way to make it more stupid is to install the smarty template engine to it.
<?xml version="1.0"?>
<config>
<modules>
<TrollandToad_Marquee>
<version>0.1.0</version>
</TrollandToad_Marquee>
</modules>
<frontend>
<routers>
<marquee>
<use>standard</use>
<args>
<module>TrollandToad_Marquee</module>
<frontName>marquee</frontName>
</args>
</marquee>
</routers>
</frontend>
<global>
<models>
<marquee>
<class>TrollandToad_Marquee_Model</class>
<resourceModel>marquee_mysql4</resourceModel>
</marquee>
<marquee_mysql4>
<class>TrollandToad_Marquee_Model_Mysql4</class>
<entities>
<image>
<table>tnt_marquee_image</table>
</image>
<area>
<table>tnt_marquee_area</table>
</area>
<imageareas>
<table>tnt_marquee_imageToArea</table>
</imageareas>
<imagecategory>
<table>tnt_marquee_imageToCategory</table>
</imagecategory>
<areacategory>
<table>tnt_marquee_areaToCategory</table>
</areacategory>
</entities>
</marquee_mysql4>
</models>
<resources>
<marquee_setup>
<setup>
<module>TrollandToad_Marquee</module>
<class>TrollandToad_Marquee_Model_Resource_Mysql4_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</marquee_setup>
<marquee_write>
<connection>
<use>core_write</use>
</connection>
</marquee_write>
<marquee_read>
<connection>
<use>core_read</use>
</connection>
</marquee_read>
</resources>
<helpers>
<marquee>
<class>TrollandToad_Marquee_Helper</class>
</marquee>
</helpers>
</global>
<admin>
<routers>
<marquee>
<use>admin</use>
<args>
<module>TrollandToad_Marquee</module>
<frontName>marquee</frontName>
</args>
</marquee>
</routers>
</admin>
<adminhtml>
<menu>
<catalog>
<children>
<Marquee_menu module="marquee">
<title>Manage Marquee Images</title>
<sort_order>1</sort_order>
<children>
<first_page module="marquee">
<title>Edit Areas</title>
<action>marquee/areas/index</action>
</first_page>
<second_page module="marquee">
<title>Edit Images</title>
<action>categoryslider/images/index</action>
</second_page>
</children>
</Marquee_menu>
</children>
</catalog>
</menu>
<layout>
<updates>
<marquee>
<file>marquee.xml</file>
</marquee>
</updates>
</layout>
</adminhtml>
</config>
For anyone considering Magento - stay as far the Hell away from this disaster of a code base as you can.