/** * Displays homepage. * * @return mixed */ public function actionIndex() { return $this->render('index', ['methodsPromo' => Content::bySection(4, 1), 'methodsLast' => Content::findLatestBySection(4, 7), 'calculatorsPromo' => Content::bySection(7, 1), 'calculatorsLast' => Content::findLatestBySection(7, 7), 'eventsPromo' => Content::bySection(8, 2), 'eventsLast' => Content::findLatestBySection(8, 7)]); }