public function actionHello() { $var = "Hello"; $array = MyList::getAll(); return $this->render('hello', ['varInView' => $var, 'arrayInView' => $array]); }
public function actionHello() { // MyList::getAll(); return $this->render('hello', ['arrayInView' => MyList::getAll()]); }