Using PEAR package Horde_Text_Diff

狂风中的少年 提交于 2019-12-18 08:55:04

问题


I installed Horde_Text_Diff, which supersedes Text_Diff. Here's the problem: when I try to use it, it gives me:

Class 'Horde_Text_Diff_Engine_Native' not found

I looked at the files, and it looks like there are fifteen or so classes that depend on each other, and none of the files include each other. Do I have to do this manually? Again, there are about fifteen files.

Is this how PEAR packages are supposed to work?


回答1:


You need to use a PSR-0 compatible autoloader that automatically includes classes when they are available from your include path. Horde provides one, Horde_Autoloader.



来源:https://stackoverflow.com/questions/15313255/using-pear-package-horde-text-diff

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