public function categoryAction($id)
 {
     if (empty($id)) {
         return AddAlertMessage('danger', 'Категории не существует.', '/');
     }
     $cat = new Market($this->context);
     $cat_name = $cat->getCat($id[0]);
     $this->view->breadcrumbs = array(array('url' => '/', 'title' => 'Главная'), array('url' => '/market/', 'title' => 'Маркет'), array('url' => '../market/comissionka', 'title' => 'Комиссионка'), array('url' => '../market/comissionka/cat-' . $id[0], 'title' => $cat_name['name_cat']));
     $vMarket = new Market($this->context);
     $this->view->setVar('block_cat_comission', $vMarket->getCategoriesCommTreeHTML());
     $this->view->setVar('block_tovar_of_cat', $vMarket->getCatTovarHTML($id[0], $id[1]));
     $this->view->setVar('block_count_tovar_cat', $vMarket->GetCountTovarCat($id[0]));
     $_SESSION['fil_id'] = $id[0];
     $this->view->generate();
 }