I need to override a controller (../Mage/Customer/controllers/AccountController.php) in order to enable user to upload a photo from "Account Information" form. I've manually created "photo" file upload field and added "enctype=multipart/form-data" to form .phtml file.
Now I need to handle submisison so that the actual file is saved on the server and path is saved into my database.
When I put Varien_File_Uploader code into original AccountController.php the file is saved on the server. I don't want to modify core files so I've created my own module with "etc/config.xml" and "controllers/AccountController.php".
etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Abcdef_Photoupload>
<version>0.1.0</version>
</Abcdef_Photoupload>
</modules>
<frontend>
<routers>
<customer>
<args>
<modules>
<Abcdef_Photoupload before="Mage_Customer_AccountController">
Abcdef_Photoupload_Frontend_Customer
</Abcdef_Photoupload>
</modules>
</args>
</customer>
</routers>
</frontend>
</config>
for now, in my controllers/AccountController.php I've put
<?php
echo "test";
exit;
require_once Mage::getModuleDir('controllers', 'Mage_Customer').DS.'AccountController.php';
class Abcdef_Photoupload_Frontend_Customer_AccountController extends Mage_Customer_AccountController
{[my code]}
neither "echo", nor [my code] get executed. Module is enabled and visible in back-end. How do I get my customized controller to work?