使用PEAR包Horde_Text_Diff [英] Using PEAR package Horde_Text_Diff
问题描述
我安装了 Horde_Text_Diff ,它取代了 Text_Diff 。这是问题:当我尝试使用它,它给我:
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.
PEAR包应该是如何工作的?
Is this how PEAR packages are supposed to work?
推荐答案
您需要使用PSR-0兼容的自动加载机,当您的包含路径可用时,它们会自动包含类。部落提供一个 Horde_Autoloader 。
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.
这篇关于使用PEAR包Horde_Text_Diff的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!