i'm trying extend core accountcontroller.php -> app/code/core/mage/customer copied app/code/local/mage/ , add log see extends properly.
in file accountcontroller.php (app/code/local/mage/customer/controllers) ... ... public function createpostaction() { mage::log('in app/code/local/mage/', null, 'test.log', true); ... ... , core (only test) in file accountcontroller.php (app/code/core/mage/customer/controllers) ... ... public function createpostaction() { mage::log('in app/code/core/mage/', null, 'test.log', true); ... ...
and not go through code/local/ mage core. need configure or fails?
the logic through controller class definitions loaded builds path file above explicit include paths on autoloader relies. means no local vs. core precedence.
you need creat controller rewrite specifying directory under xpath frontend/routers/customer/args/modules/your_module
the latter node needs before
attribute set mage_customer
, need create accountcontroller.php
createpostaction()
method. depending on needs may or may not need extend and require core account controller class.
Comments
Post a Comment