Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Override Zend framework classes in Magento using configuration?

Do you know if there is a way in Magento to override classes from Zend framework using configuration like in next example:

<config>
    <global>
        <models>
            <mymodule>
                <class>MyNamespace_MyModule_Model</class>
            </mymodule>
            <zend>
                <rewrite>
                    <somezendclass>MyNamespace_MyModule_Model_SomeZendClass</somezendclass>
                </rewrite>
            </zend>
        </models>
    </global>
</config>
like image 358
ceckoslab Avatar asked Jan 18 '23 22:01

ceckoslab


1 Answers

I don't think it is possible. If you really want to change some class from ZF, you should copy it to app/code/local/Zend (path to your class...) directory. Bad thing is that you should copy and paste whole class.

like image 72
Roman Snitko Avatar answered Jan 31 '23 06:01

Roman Snitko