zendframework “Fatal error: Class 'Albums' not found in”,急急急
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
请各位仁兄帮帮忙,郁闷死我了!