Esempio n. 1
0
 /**
  * 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]);
 }
Esempio n. 2
0
 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]);
 }