public function action_news() { $slug = $this->request->param('slug'); $pageData = $this->newsModel->findNews(null, null, $slug == 'all' ? null : $slug, 'all'); $content = $this->contentModel->getContent('news', $pageData); $footer = View::factory('footer')->set('pagesImgs', []); $this->template->set('content', $content)->set('footer', $footer); $this->response->body($this->template); }