There have been many times when all I want to do is redefine a specific action on the controller, but not all. In most cases, I just tried the entire controller, but I wonder if there is a better way? Is Magento able to simply override one action in the controller, leaving the original controller and other actions as they were?
Example:
class Mage_Core_AwesomeController extends Mage_Core_Controller_Front_Action {
So url awesome / torewrite will go to Local_Core_AwesomeController, but the awesome / index url will be sent to Mage_Core_AwesomeController.
This example is obviously fabricated; it's just there to show what I want in theory. Therefore, please do not try to correct the example, just demonstrate the best way to redefine only the action.
I think it would also be important to note that I do not want to rewrite the URL just by redefining the action. Maybe this is not possible without rewriting the URL? Itβs just that when you rewrite a URL, the tags in the layout change, and I prefer to keep them the same.
sbditto85
source share