public function action_showtag() { $url = $this->request->param('id'); $data = array(); $tag = new Model_Tag(); $data['tag'] = $tag->tagInfoByUrl($url); if (!$data['tag']) { throw new HTTP_Exception_404('Запрашиваемый тег не найден!'); return; } $data['materials'] = $tag->contentTagById($data['tag']['id']); $this->template->content = View::factory('tagview', $data); }