Example #1
0
 public function actionIndex()
 {
     $hotProducts = Product::getHots();
     $bestProducts = Product::getBests();
     $newProducts = Product::getNews();
     $randomProducts = Product::getRandoms();
     return $this->render('index', compact('hotProducts', 'bestProducts', 'newProducts', 'randomProducts'));
 }