【发布时间】:2011-01-17 16:36:17
【问题描述】:
我想在 Magento 模块中使用 PclZip 库。我通过我的包管理器 (libphp-pclzip) 安装了它,但我无法直接在我的模块中使用它,Magento 自动加载器尝试获取该类并失败:
警告:include(PclZip.php):无法打开流:/home/frleq/Dev/projets/Compario/magento-community-1.4.2.0/lib/Varien/Autoload.php 中没有这样的文件或目录第 93 行
#0 /home/frleq/Dev/projets/Compario/magento-community-1.4.2.0/lib/Varien/Autoload.php(93): mageCoreErrorHandler(2, 'include(PclZip....', '/home/frleq/Dev...', 93, Array)
#1 /home/frleq/Dev/projets/Compario/magento-community-1.4.2.0/lib/Varien/Autoload.php(93): Varien_Autoload::autoload()
#2 [internal function]: Varien_Autoload->autoload('PclZip')
#3 [internal function]: spl_autoload_call('PclZip')
#4 /home/frleq/Dev/projets/Compario/magento-community-1.4.2.0/app/code/community/Compario/Connector/Helper/Data.php(8): class_exists('PclZip')
我怎样才能设法禁用自动加载或让它找到我的库?
谢谢!
【问题讨论】: