I guess I already know the answer but may be there is a good way to rewrite the class Mage_Core_Block_Abstract without to do it directly in the magento framework.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The reason you can rewrite classes in Magento is because you pass the class you’d like to load through a translation layer, translating from
core/templatetoMage_Core_Block_Template, for example.Abstract classes don’t pass through this layer as you reference them directly in the code, e.g.
class Mage_Core_Block_Template extends Mage_Core_Block_Abstract {..}.If you really need to redefine the class, then you’ll need to put it higher up the load path, like in the
app/code/localfolder. I’d reassess why you’re doing this, though, as you may be taking the wrong approach, or there may be a better way to achieve your desired outcome.