I need to have 2 submenus in one menu in System
menu.
It shows for me 2 submenus, but clicking on it just redirects a browser to the front page.
This is my config.xml
part:
<admin>
<routers>
<sphinxsearch>
<use>admin</use>
<args>
<module>AD_SphinxSearch_Adminhtml</module>
<frontName>sphinxsearch</frontName>
</args>
</sphinxsearch>
</routers>
</admin>
This is my adminhtml.xml
part:
<menu>
<system>
<children>
<sphinxsearch module="sphinxsearch">
<title>Sphinx Search</title>
<sort_order>9999</sort_order>
<depends>
<module>AD_SphinxSearch</module>
</depends>
<children>
<wordforms module="sphinxsearch">
<title>Word Forms</title>
<sort_order>1</sort_order>
<action>sphinxsearch/wordforms</action>
</wordforms>
<stopwords module="sphinxsearch">
<title>Stop Words</title>
<sort_order>2</sort_order>
<action>sphinxsearch/stopwords</action>
</stopwords>
</children>
</sphinxsearch>
</children>
</system>
</menu>
And this is a structure of controllers:
AD
SphinxSearch
- controllers
- Adminhtml
- StopwordsController.php
- WordformsController.php
Each class (AD_SphinxSearch_Adminhtml_StopwordsController
, AD_SphinxSearch_Adminhtml_WordformsController
) extends Mage_Adminhtml_Controller_Action
and has indexAction
methods.
What am I doing wrong?