解決済み:拡張子にadminhtml.xmlとadminhtmlフォルダがない場合は、404を解決する方法?

magento.stackexchange https://magento.stackexchange.com//questions/88657

質問

パッチ6788を適用した後、config.xmlを編集する必要があることがわかります。My ExtensionにAdminHTMLフォルダとそのXMLファイルがありませんので、変更を依然として404を取得した後は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>` 
.

私は思いますか?

ライセンス: CC-BY-SA帰属
所属していません magento.stackexchange
scroll top