コード例 #1
0
 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]);
 }
コード例 #2
0
 public function actionIndex()
 {
     $xmans = Xman::getAllXmans();
     $this->view_data['xmans'] = $xmans;
     return $this->render('index', $this->view_data);
 }