コード例 #1
0
 public function newsInitData()
 {
     $cmModel = new Admin\CommonModel();
     $categoryList = $cmModel->getCategoryListByGroup('N');
     $newsInitData = array("categoryList" => $categoryList);
     return $newsInitData;
 }
コード例 #2
0
 public function getTourDetailIndexModel($tourId)
 {
     $cmModel = new Admin\CommonModel();
     $photoModel = new Admin\AdminPhotoModel();
     $nationalList = $cmModel->getNationList();
     $locationList = $cmModel->getLocationList();
     $photoList = $photoModel->getImgReferList('tb_tours', $tourId, 'TOUR_ID');
     $categoryList = $cmModel->getCategoryListByGroup('T');
     $tourDetail = array("adminTourDetail" => $this->getTourDetailMode($tourId), "nationalList" => $nationalList, "locationList" => $locationList, "photoList" => $photoList, "categoryList" => $categoryList);
     return $tourDetail;
 }