Exemple #1
0
 public function indexAction()
 {
     $this->view->header_title = "Trang Chủ";
     $this->assets->collection("head")->addJs($this->config['GAME_URL'] . 'public/js/view/home.js');
     $this->view->home_slider = \HaiQuan\Backend\Models\Banner::getBannerHomeSlider();
     // return view
     $this->view->home_tintuc = \HaiQuan\Backend\Models\CtgTintuc::getHomeTinTuc();
     $this->view->banner_middle_1 = \HaiQuan\Backend\Models\Banner::getBannerMiddle1();
     $this->view->banner_middle_2 = \HaiQuan\Backend\Models\Banner::getBannerMiddle2();
     $this->view->tu_van_home = \HaiQuan\Backend\Models\CtgTuVan::getHomeTuVan();
     $this->view->van_ban_home = \HaiQuan\Backend\Models\CtgVanbang::getVanBanHome();
     //        $this->view->vanban          = $vanbanModel->getAll();
     //        $this->view->tintuc          = $tintucModel->getAll();
     //        $this->view->tuvancauhoi     = $tuvanModel->getAll();
     //        $this->view->banner_middle_2 = $bannerModel->getBannerMiddle2();
     //        $this->view->banner_middle   = $bannerModel->getBannerMiddle();
 }