1
我目前因爲路由問題而被封鎖了半天,而且我沒有找到任何解決方案。我在我的管理菜單上添加了一個選項卡,並且此選項卡的操作正在觸發「前端控制器達到100次路由器匹配迭代」。 我在這裏看到的所有帖子都是在其他情況下,我做了修改https://github.com/convenient/magento-ce-ee-config-corruption-bug#the-fix沒有任何更改。 所有緩存都已清除,所以如果有人能夠幫助我提供數據,我們將不勝感激。Magento路由問題
我的體系結構是:
Booking/etc/adminhtml.xml
Booking/etc/config.xml
Booking/controllers/ContactRequestController.php
adminhtml.xml
<config>
<menu>
<customer>
<children>
<ContactRequest translate="title" module="whatever_booking">
<title>Contact Requests</title>
<action>Whatever_Booking/ContactRequest</action>
</ContactRequest>
</children>
</customer>
</menu>
<acl>
<resources>
<admin>
<children>
<customer>
<children>
<ContactRequest translate="title" module="whatever_booking">
<title>Contact Request Menu</title>
<sort_order>1</sort_order>
<children>
<example>
<title>Contact Requests</title>
</example>
</children>
</ContactRequest>
</children>
</customer>
</children>
</admin>
</resources>
</acl>
</config >
config.xml中
<config>
<modules>
<Whatever_Booking>
<version>0.1</version>
</Whatever_Booking>
</modules>
<admin>
<routers>
<whatever_booking>
<use>admin</use>
<args>
<modules>
<Whatever_Booking>Whatever_Booking</Whatever_Booking>
<frontName>booking</frontName>
</modules>
</args>
</whatever_booking>
</routers>
</admin>
<global>
<config>
控制器
class Whatever_Booking_ContactRequestController extends Mage_Adminhtml_Controller_Action {
public function indexAction()
{
Mage::log('controller',null,'test.log');
// this log isnt displayed, i got the error before
}
}
乍一看猜測是它與你的套管有關。也許使用這個工具生成這個確切的管理頁面,並比較代碼將顯示你需要做出的改變:http://www.silksoftware.com/magento-module-creator/ –
哇感謝很多老兄,把這個作爲答案我驗證它! –
在我的情況,只是一個類型Whatever_Booking而不是在行動領域whatever_booking。該行動必須以frontName –