The Magento- based XML structure seems a bit confusing and annoying in the beginning, but it is well known that it’s ultimately powerful and customizable ...
<adminhtml_example_index></adminhtml_example_index>
[] [] []
. admin config.xml adminhtml.
<admin>
<routers>
<adminhtml>
<args>
<modules>
<awesome before="Mage_Adminhtml">Super_Awesome_Adminhtml</awesome>
</modules>
</args>
</adminhtml>
</routers>
</admin>
, .
, url /admin/example/[index], magento , <adminhtml>, example , index (/admin/example/ )
<adminhtml_example_index>
<reference name="content">
<block type="awesome/adminhtml_example" name="example" />
</reference>
</adminhtml_example_index>
. content, .
<block> , . <type> . , (, Magentos MVC phtml)
awesome/adminhtml_example awesome - , config.xml. adminhtml_example - , .
<global>
-----
<blocks>
<awesome>
<class>Super_Awesome_Block</class>
</awesome>
</blocks>
</global>
block ( ). Super/Awsome/Block/.
. adminhtml_example - , . (awesome) .
[codepool]/Super/Awsome/Block/Adminhtml/Example.php
class Super_Awesome_Block_Adminhtml_Example extends ….
, .. .phtml
<reference name="root">
<block type="page/html" name="root" template="simplepage.phtml" />
</reference>
, ... , - ...