I'm trying to override the loginactions, but i'm not to get this working. Removed all the cache and stuff, but its looking i'm missing a step. Mine files are like the following:
app/code/etc/Something_Customlogin.xml
<?xml version="1.0"?>
<config>
<modules>
<Something_Customlogin>
<active>true</active>
<codePool>local</codePool>
</Something_Customlogin>
</modules>
</config>
app/code/local/Something/Customlogin/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Something_Customlogin>
<version>1.0.1</version>
</Something_Customlogin>
</modules>
<frontend>
<routers>
<customer>
<args>
<modules>
<Something_Customlogin before="Mage_Customer">Something_Customlogin
</Something_Customlogin>
</modules>
</args>
</customer>
</routers>
</frontend>
</config>
app/code/local/Something/Customlogin/controllers/AccountController.php
<?php
//Controllers are not autoloaded so we will have to do it manually:
require_once Mage::getModuleDir('controllers', 'Mage_Customer').DS.'AccountController.php';
class Something_Customlogin_AccountController extends Mage_Customer_AccountController {
//Overloaded loginPostAction
public function loginPostAction() {
//Just to make sure
echo "YES YES YES WE surely CAN!!";
die;
}
/**
* Customer login form page
*/
public function loginAction() {
echo "YES YES YES WE CAN!!";
die;
}
}
BUT I'm not getting the printed text on the login page?! I have the feeling that im missing something.
Any help appreciated!
app/code/etc