Начинаю работу с ZF, с БД, как сделать чтобы вместо "An error occurred Application error" получать нормальную информацию об ошибке. Например, начинаю работать с БД. В application.ini прописано PHP: [production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.db.adapter = "pdo_mysql" resources.db.params.host = "localhost" resources.db.params.username = "root" resources.db.params.password = "" resources.db.params.dbname = "lugburz_reviews" resources.db.isDefaultTableAdapter = true [staging : production] phpSettings.display_startup_errors = 1 [testing : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 [development : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 В моделе делаю следующее: PHP: <?php require_once 'Zend/Db/Table/Abstract.php'; class DbTable_News extends Zend_Db_Table_Abstract { protected $_name='news'; public function getNews($id){ $id = (int)$id; $row = $this->fetchRow('ouid = ' . $id); if (!$row) { throw new Exception("Count not find row $id"); } return $row->toArray(); } } ?> И в индекс-контроллере: PHP: <?php require_once 'Zend/Controller/Action.php'; require_once 'DbTable/News.php'; class IndexController extends Zend_Controller_Action { public function indexAction() { $news = new DbTable_News(); $content = $news->getNews(2); $this->view->content = $content; } public function metaAction(){} } ?>