public function actionAccess($name, $id)
 {
     $searchModel = new FriendsSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     $dataProviderOne = new ActiveDataProvider(['query' => Yetki::find()->where(['id' => '' . $id])]);
     return $this->render('access', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel, 'dataProviderOne' => $dataProviderOne]);
 }
Example #2
0
 public function getYetki()
 {
     return $this->hasOne(Yetki::className(), ['id' => 'id']);
 }