嗨,当我尝试包含任何标准库时,我遇到了问题。我已经将 Zend 文件夹导入此路径
/project
/library
/
这是我的脚本:
require_once 'Zend/Db/Table/Abstract.php';
require_once APPLICATION_PATH.'/models/ContentNode.php';
class Application_Model_Page extends Zend_Db_Table_Abstract
{
public function createPage ($name, $namespace, $parentId = 0)
{
//create the new page
$row = $this->createRow();
$row->name = $name;
$row->namespace = $namespace;
$row->parent_id = $parentId;
$row->date_created = time();
$row->save();
// now fetch the id of the row you just created and return it
$id = $this->_db->lastInsertId();
return $id;
}
这是我收到的错误消息
警告:include_once(Zend\Db\Table\Abstarct.php) [function.include-once]:无法打开流:C:\Zend\Apache2\htdocs\zendproject\library\Zend\Loader 中没有这样的文件或目录。第 146 行的 php