管理コントローラーを追加しました。このコードは正しく動作します:
<admin>
<routers>
<adminhtml>
<args>
<modules>
<mycompany_mymodule>Mycompany_Mymodule_Adminhtml</mycompany_mymodule >
</modules>
</args>
</adminhtml>
</routers>
</admin>
mycompany_mymodule に before="Mage_Adminhtml" を追加すると:
<mycompany_mymodule before="Mage_Adminhtml">Mycompany_Mymodule_Adminhtml</mycompany_mymodule >
その後、機能しません-404エラーが発生しました。
1. このオプションは何をしますか?
また、私はアランの嵐の記事を調べました: http://alanstorm.com/magento_admin_controllers 例があります:
<config>
<!-- ... -->
<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>
<!-- ... -->
</config>
2. これらの定義の違いは何ですか?