public function actionBooks() { $var = 'Books'; $arr = Books::getAll(); return $this->render('books', ['varInView' => $var, 'arrayInView' => $arr]); }