Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Index extends Page {
- function run() {
- $this->asset('/a/css/index.css');
- $this->asset('/a/css/tree.css');
- $this->asset('/a/css/item.css');
- $this->asset('/a/css/carousel.css');
- $this->asset('/a/js/carousel.js');
- $v = new View();
- $v->tops = Offer::renderItems((new Goods())->order('rating DESC')->page(1, 3));
- $v->news = Offer::renderItems((new Goods())->order('created_at DESC')->page(1, 3));
- $this->content = $v->render('index');
- $this->carousel = (new Carousel)->all();
- $this->side = Catalog::getSide(false);
- $this->render();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement