Hi I have problem when I am trying to include any standard library. I already import Zend folder into this path
/project
/library
/
Here is my script:
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;
}
here is error message I am getting
Warning: include_once(Zend\Db\Table\Abstarct.php) [function.include-once]: failed to open stream: No such file or directory in C:\Zend\Apache2\htdocs\zendproject\library\Zend\Loader.php on line 146
autoloaderNamespaces[] = "CMS_"
- RockyFord