Ejemplo n.º 1
0
     $tieude_id = $tmp_uri[2];
     $arr = explode("-", $tieude_id);
     $product_id = (int) end($arr);
     $arrDetailProduct = $model->getDetailProduct($product_id);
     $data = $seo = $arrDetailProduct['data'];
     $cate_id = $data['cate_id'];
     $_SESSION['view'][$product_id] = $data;
     $arrRelated = $model->getProductRelated($cate_id, $product_id);
     break;
 case "detail-news":
     $tieude_id = $tmp_uri[2];
     $arr = explode("-", $tieude_id);
     $article_id = (int) end($arr);
     $data = $model->getDetailArticles($article_id);
     $cate_id = $data['cate_id'];
     $detailCate = $seo = $model->getDetailCateArticles($cate_id);
     break;
 case "cate-news":
     $tieude_id = $tmp_uri[2];
     $arr = explode("-", $tieude_id);
     $cate_id = (int) end($arr);
     $detailCate = $seo = $model->getDetailCateArticles($cate_id);
     break;
 case "detail-event":
     $tieude_id = $tmp_uri[2];
     $arr = explode("-", $tieude_id);
     $banner_id = (int) end($arr);
     $data = $model->getDetailBanner($banner_id);
     $seo['meta_title'] = $data['name_event'];
     $seo['meta_description'] = $data['name_event'];
     $seo['meta_keyword'] = $data['name_event'];