level 8
掌们
楼主
在model里写了个类如下
class Debut extends Zend_Db_Table{
protected $_name = *debut*;
protected $_id = *id*;
public function getInfos(){
$select = $this->_db->select();
$select->from($this->_name);
$result = $this->_db->fetchAll($select);
return $result;
}
}
在Action里new对象报错
错误信息:Fatal error: Class *Debut* not found in C:\Users\admin\Zend\workspaces\DefaultWorkspace7\test\application\controllers\TestController.php on line 4
在编译环境里可以找到对应类,请问为啥啊?
2014年10月28日 05点10分
1
class Debut extends Zend_Db_Table{
protected $_name = *debut*;
protected $_id = *id*;
public function getInfos(){
$select = $this->_db->select();
$select->from($this->_name);
$result = $this->_db->fetchAll($select);
return $result;
}
}
在Action里new对象报错
错误信息:Fatal error: Class *Debut* not found in C:\Users\admin\Zend\workspaces\DefaultWorkspace7\test\application\controllers\TestController.php on line 4
在编译环境里可以找到对应类,请问为啥啊?