public function actionIndex() { $items = Carousel::itemlist(1306, 460); $testmonials = Text::find()->all(); return $this->render('index', array('items' => $items, 'testmonials' => $testmonials)); }
public function actionIndex() { $items = Carousel::itemlist(1306, 460); $testmonials = PageModel::find()->where("homepage=1 or homepage=2")->desc()->all(); return $this->render('index', array('items' => $items, 'testmonials' => $testmonials)); }