public function actionIndex() { $xmans = Xman::getAllXmans(); $films = []; foreach ($xmans as $xman) { $films[$xman['id']] = Xman::getFilms($xman['id']); } return $this->render('index', ['xmans' => $xmans, 'films' => $films]); }
public function actionIndex() { $xmans = Xman::getAllXmans(); $this->view_data['xmans'] = $xmans; return $this->render('index', $this->view_data); }