Magento trying to autoload class unnecessarily

六月ゝ 毕业季﹏ 提交于 2019-12-11 14:36:20

问题


I'm using a 3rd party php library to connect to Microsoft Dynamics CRM, which I've placed in the /lib folder of Magento.

I've created a controller for testing purposes, in which I'm including the files from the lib folder (which are being included, as changing the paths throws an error), but when I try and initiate the class defined in one of the included files, i get this warning:

Warning: include(DynamicsCRM2011\Connector.php) [function.include]: failed to open stream: No such file or directory.

It shouldn't be trying to include anything, the class is already defined in a previously included file!

Any ideas how I can prevent this from happening? I'd have thought it would only try to autoload the file if the class is undefined surely?

来源:https://stackoverflow.com/questions/14154449/magento-trying-to-autoload-class-unnecessarily

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!