【发布时间】:2012-02-19 22:44:47
【问题描述】:
所有, 我正在尝试使用以下代码加载我的 Zend 框架:
require_once $themePath.'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata', 'D:\My Documents\xampp\htdocs\wordpress\wp-content\themes\theme');
Zend_Loader::loadClass('Zend_Gdata_HttpClient', 'D:\My Documents\xampp\htdocs\wordpress\wp-content\themes\theme');
Zend_Loader::loadClass('Zend_Json', 'D:\My Documents\xampp\htdocs\wordpress\wp-content\themes\theme');
这让我在那儿走得更远。但是,当它尝试在下一页加载 Zend/Gdata/App.php 时,它说找不到它。我认为它会起作用,但我不断收到以下错误:
警告:require_once(Zend/Gdata/App.php) [function.require-once]:无法打开流:D:\My Documents\xampp\htdocs\wordpress\wp-content\ 中没有这样的文件或目录在第 27 行的主题\主题\Zend\Gdata.php
第 27 行是:
require_once 'Zend/Gdata/App.php';
为什么这不起作用?提前感谢您的帮助!
【问题讨论】:
标签: php wordpress zend-framework