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(); } }
public function index() { $this->show->sliderList = Slider::getSlides(); }