如何覆盖app / code / core / Mage / Core / functions.php中的Magento功能 [英] How to override a Magento function in app/code/core/Mage/Core/functions.php
本文介绍了如何覆盖app / code / core / Mage / Core / functions.php中的Magento功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
app / code / core / Mage / Core / functions.php
问题是,这是如此核心,以至于没有与之关联的类,可能是因为Core甚至不是模块。有没有人知道如何在没有类的情况下重写文件中的函数?
任何帮助将不胜感激。
解决方案
也许我没有理解你的问题,但为什么不把这个文件复制到
app / code / ** local ** / Mage / Core / functions.php
并以任何你想要的方式修改它?
I need to override a function in this file:
app/code/core/Mage/Core/functions.php
The problem is that this is so core that there’s no class associated to it, probably because Core isn’t even a module. Does anybody know how to override a function in the file without a class?
Any help would be appreciated.
解决方案
Maybe I did not understood your question right but why not just copy this file into
app/code/**local**/Mage/Core/functions.php
and modify it there in any way you want?
这篇关于如何覆盖app / code / core / Mage / Core / functions.php中的Magento功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文