Override Zend environment classes in Magento using configuration?

Did you know that Magento has a way to override classes from the Zend structure using configuration, as in the following example:

<config> <global> <models> <mymodule> <class>MyNamespace_MyModule_Model</class> </mymodule> <zend> <rewrite> <somezendclass>MyNamespace_MyModule_Model_SomeZendClass</somezendclass> </rewrite> </zend> </models> </global> </config> 
+4
source share
1 answer

I do not think that's possible. If you really want to change a class from ZF, you must copy it to the app/code/local/Zend directory (the path to your class ...). It is bad that you have to copy and paste the whole class.

+8
source

Source: https://habr.com/ru/post/1388580/


All Articles