Frage

Ich habe versucht, Catalog_Product_review Controller in Admin zu schreiben, aber fehlgeschlagen. Ich bin mir des Problems nicht bewusst. Weiß jemand, dass Problem mir vielleicht hilft?

Vielen Dank

config.xml:

<config>
    <modules>
        <Hn_Mymodule>
            <version>0.1.0</version>
        </Hn_Mymodule>
    </modules>
     <admin>
        <routers>
            <adminhtml>
                <args>
                    <modules>
                        <mymodule before='Mage_Adminhtml'>Hn_Mymodule</mymodule>
                    </modules>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>

HN/MYMODULE/CONTROLERS/adminHtml/Katalog/Produkt/ReviewController.php

require_once 'Mage/Adminhtml/controllers/Catalog/Product/ReviewController.php';

class Hn_Mymodule_Adminhtml_Catalog_Product_ReviewController extends Mage_Adminhtml_Catalog_Product_ReviewController{

    public function indexAction()
    {
        echo "test index";
    }

    public function saveAction()
    {
        echo "test save";
    }

}
War es hilfreich?

Lösung

Das Problem ist mit dieser Linie

<mymodule before='Mage_Adminhtml'>Hn_Mymodule</mymodule>

Es sollte sein

<mymodule before='Mage_Adminhtml'>Hn_Mymodule_Adminhtml</mymodule>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange
scroll top