public function index() { $IndexModel = new IndexModel(); $slider = $IndexModel->getSlider(); $this->assign('slider', $slider); $NewsModel = new NewsListModel(); $newItem = $NewsModel->getIndexNews(); $this->assign('newItems', $newItem); $cateModel = new CategoryModel(); $category = $cateModel->getCategory(); $this->assign('cate', $category); $this->show(); }
public function shoeandbags() { layout(false); $p = I('p'); empty($p) ? $p = 1 : $p; $goods_model = new IndexModel(); list($goodsArr, $show, $count) = $goods_model->getIndexGoods($p - 1, '4,237', 80); $this->assign('count', $count); $this->assign('show', $show); $this->assign('goodlist', $goodsArr); $this->display('index'); }