Skip to content

Monthly Archives: October 2010

Autoload and Extended Magento Core Controllers

You’ll spend a lot of time extending existing classes when you work with Magento to take advantage of the copious built-in functionality. Here is a ‘gotcha’ when extending controllers: If you’re extending a ‘core’ factory controller, like so: class YourPackage_YourModule_IndexController extends Mage_Adminhtml_Controller_Action …then Adminhtml controller will autoload. However, if you’re extending a controller class that […]

Overriding core files: the definitive guide

At Overriding usually isn’t the best solution for adding new functionality, since you can only override each core file one time. However, for a quick fix, with a core Magento file that you are unlikely to need to change, it can be fine. This blog post collects the syntax for overriding each type of […]