メソッドコントローラーをオーバーライドする必要があります
Core/Mage/Customer/controllers/AccountController.php 新しいメソッドを追加します。編集するこのコントローラーは間違っているため、オーバーライドする必要があります。
プロジェクト要件によると、コントローラーは次の場所にある必要があります。
local/New/Mage/Customer/controllers/AccountController.php これを行うには、ファイル構成を作成しますがcustomer/account/test、customer/account /ajaxaddresssは応答せず、customer/account/loginオーバーライドされません。この実装を手伝ってください。
app / app / etc / modules / New_Mage_Customer.xml
<?xml version="1.0"?>
<config>
 <modules>
      <New_Mage_Customer>
           <active>true</active>
           <codePool>local</codePool>
      </New_Mage_Customer>
  </modules>
</config>
app / code / local / New / Mage / Customer / etc / config.xml
<?xml version="1.0"?>
<config>
    <modules>
        <New_Mage_Customer>
            <version>0.0.1</version>
        </New_Mage_Customer>
    </modules>
    <frontend>
        <routers>
            <customer>
                <args>
                    <modules>
                        <new_customer before="Mage_Customer">New_Mage_Customer</new_customer>
                    </modules>
                </args>
            </customer>
        </routers>
    </frontend>
</config>
app / code / local / New / Mage / Customer / controllers / AccountController.php
<?php
/**
 * Customer account controller
 */
require_once 'Mage/Customer/controllers/AccountController.php';
class New_Mage_Customer_AccountController extends Mage_Customer_AccountController {
    public function ajaxAction() {
        echo 'ajax!!';
    }
    public function testAction() {
        echo 'test222';
    }
    public function loginAction() {
        echo 'index';
    }
}
ありがとう!
                  ここで確認してください(magento.stackexchange.com/questions/91413/...)
                
                
                  
                    —
                    Mineshパテル