我正在尝试使用 Zend_Db_Table_Abstract 连接到数据库表。为此,请按照以下步骤操作
Step1:创建一个扩展 Zend_Db_Table_Abstract 的类
<?php
class Application_Model_DbTable_Albums extends Zend_Db_Table_Abstract{
protected $_name = "zfalbums";
public function getAlbums($id){
    $where = "id = $id";
    $row = $this->fetchRow($where);
    $row->toArray();
    return $row;
}
}
Step2:在控制器中调用上面的类,像这样
<?php
class IndexController extends Zend_Controller_Action
{
public function init()
{
    /* Initialize action controller here */
}
public function indexAction()
{
    ;
    $albums = new Application_Model_DbTable_Albums();
    $result = $albums->fetchAll()->toArray();
    print_r($result);
}
}
Step3:使用本地主机url访问索引控制器
但是,当尝试运行此控制器时,会引发以下错误
致命错误:在中找不到类“Application_Model_DbTable_Albums”
这是我的项目结构
