0

我在我的模块上创建了以下类

class Mage_Chargeagent_PaymentupdateController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {

        echo "im here";
        die();
    }
}

它位于 local\Company\Chargeagent\controllers\PaymentupdateController.php 下

当我试图导航到http://www.xxx.com/index.php/chargeagent/paymentupdate时我没有采取正确的行动,我做错了什么?

4

1 回答 1

1

类名应该是Company_Chargeagent_PaymentupdateController

class Company_Chargeagent_PaymentupdateController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {

        echo "im here";
        die();
    }
}
于 2013-03-19T16:57:54.123 回答