public function getCateChilds($id, $cam_nang = false)
 {
     $html = "";
     if ($id != null) {
         $cate_action = 'danh-muc';
         $categorys = Category_Model_DbTable_Category::getInstance();
         $categoryChild = $categorys->getCateChildById($id);
         $categoryCurent = $this->view->id_cate_curent ? $this->view->id_cate_curent : 0;
         if (count($categoryChild)) {
             foreach ($categoryChild as $categoryC) {
                 $id = $categoryC['id'];
                 $class = $categoryCurent == $id ? 'visited' : '';
                 $title = $this->translate($categoryC, 'title');
                 if ($cam_nang) {
                     $urlKey = $this->formatUrlKey($title);
                     $html .= '
             <li><a class="' . $class . '" href = "' . BASE_URL . '/' . $cam_nang . '/' . $urlKey . '/' . $id . '" > ' . $title . '</a ></li >
             ';
                 } else {
                     $html .= '
             <li><a class="' . $class . '" href = "' . BASE_URL . '/tin-tuc/' . $cate_action . '/' . $this->formatUrlKey($title) . '/' . $id . '" > ' . $title . '</a ></li >
             ';
                 }
             }
         }
     }
     return $html;
 }
 public function getCate($id)
 {
     $categorys = Category_Model_DbTable_Category::getInstance()->getCateById($id);
     $this->view->categorys = $categorys[0];
 }