I recently started working on Magento for one of my projects and stuck at something, which i see a very common use case. I tried looking at different blog post but couldn't find any which can hint towards that.
My question is, I want to able to override the existing frontName for a module in magento. e.g.
If current user dashboard URL is
I want to change it to.
Also I will probably add more method in my controller to add few other functionalities. For which I found following post very useful.
https://stackoverflow.com/questions/15212753/getting-2-modules-to-use-same-frontname-in-magento
Can i refer this also any suggestion on how to change frontName?
Best Answer
You will need a custom module that only changes the frontname of a module (
Mage_Customer
in this case.)Let's name the module
Easylife_User
This module contains only 2 files.app/etc/module/Easylife_User.xml
- the declaration fileapp/code/local/Easylife/User/etc/config.xml
- the configuration fileClear the cache and you are done.
If all your links to the customer pages are generated using
->getUrl('customer/...')
. This should work.If you have links in your templates like this
It won't work. But anyway, you shouldn't have links like the example above.