magento控制器动作

时间:2013-03-19 16:21:00

标签: magento

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

class Mage_Chargeagent_PaymentupdateController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {

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

它位于本地\ Company \ Chargeagent \ controllers \ PaymentupdateController.php

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

1 个答案:

答案 0 :(得分:1)

班级名称应为Company_Chargeagent_PaymentupdateController

class Company_Chargeagent_PaymentupdateController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {

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