如何使用自动加载器找到与 Zend 目录位于同一目录中的类文件“模板”?
|_ include
|_Zend
|_Templater.php
|_Smarty
|_root directory
我已将 Zend 文件夹和 smarty 文件夹以及其他类存储在根目录之外的 de include 文件夹中。
我终于弄清楚了 Zend 如何通过将它的位置添加到 include_path 来定位它的类。
现在我被 smarty 使用的 templaterclass 卡住了。
如何让自动加载器知道 templaterclass 以及以后 smarty 文件夹中的 smarty 类?