在做Magento的模块的过程中,经常能碰到明明文件已经存在了,在页面上却爆出 Warning: include(Mage\Lilysoft\Searchorder\Helper\Data.php) [function.include]: failed to open stream: No such file or directory 在我的模块文件夹中,其实已经存在 app\local\Lilysoft\Searchorder\Helper\Data.php 文件了,但是却无法找到,因为无法定位到模块中,因此才去Mage中找,自然也找不到。 问题往往处在配置文件中,即config文件和layout文件。 比如出问题的 layout文件截取 <layout>…