protected function action_one() { $id = $this->params[2]; $this->goods = MGoods::app()->one($id); $this->tags = MTags::app()->getTagsForOne($id); $this->template = 'goodscard.html'; var_dump($this->tags); echo $this->view->render($this->template, ['goods' => $this->goods, 'tags' => $this->tags]); }