コード例 #1
0
ファイル: Page.php プロジェクト: kizz66/meat
 public function index()
 {
     if ($this->show->indexPage) {
         $oNewsPage = new Page();
         $oNewsPage->loadByID($this->show->Page);
         $this->show->Content = $oNewsPage->Content;
         $brand = new Catalog_Brand();
         $sub = new Catalog_Category();
         $this->show->subbrand = new object();
         $this->show->categorylist = $sub->getList(-1);
         $this->show->brand = $brand->getList();
         foreach ($this->show->brand as $item) {
             $this->show->subbrand[$item['Title']] = $sub->getList($item['BrandID']);
         }
         $this->show->sliders = Slider::getSlides();
     }
 }
コード例 #2
0
ファイル: Slider.php プロジェクト: kizz66/meat
 public function index()
 {
     $this->show->sliderList = Slider::getSlides();
 }