После следующие шаги, я до сих пор не вижу его работы:Администратор модуль не работает после того, как образец
http://alanstorm.com/magento_admin_controllers
Это еще applicacple для последней версии Magento, или в том, что учебник устарел?
Есть ли что-нибудь еще, что может привести к ошибке 404?
конфигурационный файл:
<config>
<modules>
<Alanstormdotcom_Adminhelloworld>
<version>0.1.0</version>
</Alanstormdotcom_Adminhelloworld>
</modules>
<admin>
<routers>
<the_name_of_this_element_is_not_important_it_should_be_unique>
<use>admin</use>
<args>
<module>Alanstormdotcom_Adminhelloworld</module>
<frontName>adminhelloworld</frontName>
</args>
</the_name_of_this_element_is_not_important_it_should_be_unique>
</routers>
</admin>
<adminhtml>
<menu>
<tutorial_menu translate="title" module="adminhelloworld">
<title>Tutorial Menu</title>
<sort_order>9999</sort_order>
<children>
<first_page module="adminhelloworld">
<title>Our First Page</title>
<action>adminhelloworld/index/index</action>
</first_page>
</children>
</tutorial_menu>
<system>
<children>
<another_menu_from_us>
<title>Here Too!</title>
<action>adminhelloworld/index/index</action>
</another_menu_from_us>
</children>
</system>
</menu>
</adminhtml>
<global>
<helpers>
<adminhelloworld>
<class>Alanstormdotcom_Adminhelloworld_Helper</class>
</adminhelloworld>
</helpers>
</global>
Индекс контроллера:
класс Alanstormdotcom_Adminhelloworld_IndexController расширяет Mage_Adminhtml_Controller_Action { общественная функция indexAction() { $ this-> loadLayout();
//create a text block with the name of "example-block"
$block = $this->getLayout()
->createBlock('core/text', 'example-block')
->setText('<h1>This is a text block</h1>');
$this->_addContent($block);
$this->renderLayout();
} защищенная функция _addContent (Mage_Core_Block_Abstract $ блок) { $ this-> getLayout() -> getBlock ('содержание') -> Append ($ блок); return $ this; }}
Я голосую, чтобы закрыть этот вопрос не по теме, потому что речь идет о Magento администрации, принадлежит http://magento.stackexchange.com – Raptor
это разработка модуля, и не имеет никакого отношения к делать с администрацией – ShaunOReilly