Starting with Magento Backend
Since a couple of days later I am looking at the behavior of the Magento backend. To understand, I created a new grid to see the bbdd table. After completing this grid, I see that I have a 404 error when I try to add a widget to the CMS page:
Debugging I see the error goes away if I comment this out from my custom module
<admin>
<routers>
<giftrouter>
<use>admin</use>
<args>
<module>Wpr_Giftproducts_Adminhtml</module>
<frontName>admin</frontName>
<modules>
<sintax after="Wpr_Giftproducts_Adminhtml">Mage_Adminhtml</sintax>
</modules>
</args>
</giftrouter>
</routers>
</admin>
Specifically, I think the error was caused by this:
<sintax after="Wpr_Giftproducts_Adminhtml">Mage_Adminhtml</sintax>
But I don't understand how this configuration works. How can I customize my own route to avoid conflict with widgets?
source to share
I think you have your routers in reverse.
<admin>
<routers>
<adminhtml>
<args>
<modules>
<sintax before="Mage_Adminhtml">Wpr_Giftproducts_Adminhtml</sintax>
</modules>
</args>
</adminhtml>
</routers>
</admin>
This way the controller Giftproducts
is part of the router adminhtml
, whereas the old way is to reassign the admin controllers to giftrouter
.
source to share