/** * Lists all Reviews models. * @return mixed * @throws InvalidParamException */ public function actionIndex() { return $this->render('index', ['reviews' => Reviews::findAll(['published' => 1])]); }