public function actionView($id) { $sections = Section::find()->all(); $model = Section::find()->where(['id' => $id])->one(); $mips = Mip::find()->where(['section_id' => $id])->all(); return $this->render('view', ['sections' => $sections, 'model' => $model, 'mips' => $mips]); }