/** * Displays a single GroupUser model. * @param integer $id * @return mixed */ public function actionView($id) { $model = new GroupPcu(); $pcu = $model->get_pcu_ingroup($id); return $this->render('view', ['model' => $this->findModel($id), 'pcu' => $pcu]); }
public function actionGet_in_group() { $input = \Yii::$app->request; $GroupId = $input->post('id'); $model = new GroupPcu(); $pcu = $model->get_pcu_ingroup($GroupId); return $this->renderPartial('pcu', ['pcu' => $pcu]); }