Codegento Who Let Mage Out Of The Cage?

12Mar/114

Rewriting Or Rerouting A Controller

Posted by Ben Robie

Just as with models/blocks/helpers, there are times when we want to change the way a core Magento controller works. Since we DON’T EVER WANT TO CHANGE THE CORE, we need a way to tell a request to use OUR controller instead of Magento’s controller. We do this by changing the configurations that hold the routing [...]

Read More...
12Mar/111

Rewriting a Helper Class

Posted by Ben Robie

The ability to rewrite classes are a super valuable tool when you want to extend the business logic of Magento, or make tweaks to the core. And since we have already talked about rewriting models and blocks, lets talk about helpers! For a third time, I will state that you SHOULD NEVER CHANGE THE CORE, [...]

Read More...
Tagged as: , 1 Comment
21Feb/112

Rewriting a Block Class

Posted by Ben Robie

As stated in the blog post about rewriting models, the ability to rewrite classes are a super valuable tool when you want to extend the business logic of Magento, or make tweaks to the core. Again, I will state that you SHOULD NEVER CHANGE THE CORE, and if you can help it, you shouldn’t just [...]

Read More...
Tagged as: , 2 Comments
21Feb/1111

Rewriting a Model Class

Posted by Ben Robie

One of the best ways to extend the capabilities of the Magneto core is to “rewrite” their classes. If create a new instance of a model class the way you are supposed to (Mage::getModel(‘awesome/example)), Magento has built in a handy way of being able to “rewrite” your request from model A to model B. Let’s [...]

Read More...
Tagged as: , 11 Comments