public function indexAction() { $this->setTitle('AktualnoĆci'); $this->setUrl('index.html'); $newsService = new Wsm_Db_News(); $list = $newsService->getList(15); $this->addToView('newsList', $list); $this->setTemplate('news/index.html'); }
public function indexAction() { $dbNews = new Wsm_Db_News(); $list = $dbNews->getList(); $this->addToView('newsList', $list); }