<?php class Album extends Zend_Db_Table { public $_name = "gd_pliki"; }
Tak wygląda kontroler który korzysta z modelu Album
Domyślam się że gdzieś zrobiłem błąd, tylko nie wiem gdzie, i pewnie lezy on w tym, że nie podałem ścieżki
<?php class HelloController extends Zend_Controller_Action { public function init() { $this->view->baseUrl = $this->_request->getBaseUrl(); Zend_Loader::loadClass('Album'); } public function indexAction() { $view=new Zend_View(); $album = new Album(); $this->view->albums = $album->fetchAll(); } }