public function cardtovarAction($id)
 {
     if (empty($id)) {
         return AddAlertMessage('danger', 'Товара не существует.', '/');
     }
     $cat = new Market($this->context);
     $cat_item = $cat->getFullTovar($id);
     $sid = $cat_item[0]['id_podcat'];
     $cat_name = $cat->getCat($sid);
     $tovar = new Komments($this->context);
     $this->view->setVar('text', $tovar->addKomm());
     //проба
     $this->view->breadcrumbs = array(array('url' => '/', 'title' => 'Главная'), array('url' => '/market/', 'title' => 'Маркет'), array('url' => '../comissionka/', 'title' => 'Комиссионка'), array('url' => '../comissionka/cat-' . $cat_name['id_p'], 'title' => $cat_name['name_cat']), array('url' => '../comissionka/cat-' . $cat_name['id_p'] . '/cardtovar-' . $cat_item[0]['id'], 'title' => $cat_item[0]['name_tovar']));
     $this->view->setVar('block_cat_comission', $cat->getCategoriesCommTreeHTML());
     $this->view->setVar('block_full_tovar', $cat->getFullTovarHTML($id));
     $this->view->generate();
 }