zendframework “Fatal error: Class 'Albums' not found in”,急急急

yuxingye 2011-02-23 10:06:26
Index Controllers:

public function indexAction ()
{
$this->view->title = "My Albums";
$this->view->headTitle($this->view->title, 'PREPEND');
$albums = new Albums();
$this->view->albums = $albums->fetchAll();
}

models:
class Albums extends Zend_Db_Table_Abstract
{

protected $_name = 'albums';

public function getAlbum ($id)
{
$id = (int) $id;
$row = $this->fetchRow('id = ' . $id);
if (! $row) {
throw new Exception("Count not find row $id");
}
return $row->toArray();
}
}

走到$albums = new Albums();出错,
Fatal error: Class 'Albums' not found in F:\workplat\xampp\htdocs\app\application\controllers\IndexController.php on line 12

请各位仁兄帮帮忙,郁闷死我了!
...全文
87 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
yuxingye 2011-02-24
  • 打赏
  • 举报
回复
顶一下,各位帮忙看看,谢谢

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧