public function action_index() { $href = $this->request->param('id'); $article = new Model_Category(); // отбираем или по категориям или по все сразу $articles = $article->get_all_sushi(); $articles = $article->get_id($href); $id = $articles[0]['id']; $select = $article->get_category($id); $this->template->styles = array('bootstrap.min', 'main', 'product-list'); $this->template->scripts = array('jquery-1.11.3.min', 'bootstrap.min', 'script001', 'cart'); $content = View::factory('/pages/category')->bind('articles', $select); $this->template->content = $content; }