Magento: local not overriding core file -
i have copied "app/code/core/mage/customer/controllers/accountcontroller.php
" "app/code/local/mage/customer/controllers/accountcontroller.php
" not overriding targeted file. getting wrong?
create following files:
1) app/etc/modules/muk_account.xml
<?xml version="1.0"?> <config> <modules> <muk_account> <active>true</active> <codepool>local</codepool> </muk_account> </modules> </config>
2) app\code\local\muk\account\etc\config.xml
<?xml version="1.0"?> <config> <modules> <muk_account> <version>0.1.0</version> </muk_account> </modules> <frontend> <routers> <customer> <use>standard</use> <args> <modules> <muk_account before="mage_customer">muk_account_customer</muk_account> </modules> </args> </customer> </routers> </frontend> </config>
3) app\code\local\muk\account\controllers\customer\accountcontroller.php
<?php require_once 'mage/customer/controllers/accountcontroller.php'; class muk_account_customer_accountcontroller extends mage_customer_accountcontroller { public function createpostaction() { } }
search google , stack overflow more details.
Comments
Post a Comment