해결 : 확장자가 AdminHtml.xml 및 adminhtml 폴더가 없으면 404를 해결하는 방법은 무엇입니까?
-
13-12-2019 - |
문제
패치 6788을 적용한 후 config.xml을 편집해야합니다.내 확장에는 AdminHtml 폴더와 XML 파일이 없으므로 변경 사항을 변경하면 404를 얻을 수 있습니다. 아래는 config.xml입니다.올바른 "액션"문은 무엇입니까?
<?xml version="1.0"?>
<config>
<modules>
<J_G>
<version>1.0.0</version>
</J_G>
</modules>
<global>
<helpers>
<g>
<class>J_G_Helper</class>
</g>
</helpers>
<blocks>
<j_g>
<class>J_G_Block</class>
</j_g>
</blocks>
</global>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<J_G after="Mage_Adminhtml">J_G_Adminhtml</J_G>
<frontName>g</frontName>
</modules>
</args>
</adminhtml>
</routers>
</admin>
<adminhtml>
<menu>
<gr>
<children>
<custom translate="title" module="g">
<title>Custom</title>
<sort_order>90</sort_order>
<children>
<sales translate="title" module="g">
<title>Sales</title>
<sort_order>10</sort_order>
<children>
<top translate="title" module="g">
<title>Payment Method</title>
<sort_order>10</sort_order>
<action>adminhtml/g_sales_paymentmethod</action>
</top>
</children>
</sales>
</children>
</custom>
</children>
</gr>
</menu>....
. 해결책
조치는
여야합니다.-
adminhtml/sales_paymentmethod/YourActionName
-
adminhtml/g_sales_paymentmethod
규칙 :
adminRouterName / lowecase (classnamefromadminhtmlFolderToController) / ActionName
업데이트
컨트롤러 경로는
이어야합니다.../J/G/controllers/Adminhtml/Sales/PaymentmethodController.php
.
클래스는
이름이어야합니다.-
J_G_Adminhtml_Sales_PaymentmethodController
다른 팁
<routers>
<adminhtml>
<args>
<modules>
<G before="Mage_Adminhtml">J_G_Adminhtml</G>
</modules>
</args>
</adminhtml>
</routers>`
.
나는 생각한다?
제휴하지 않습니다 magento.stackexchange