Exemplo n.º 1
0
 /**
  * Lists all Access models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new AccessSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Exemplo n.º 2
0
 public function actionFriendslist()
 {
     $searchModel = new AccessSearch();
     $dataProvider = $searchModel->search(['AccessSearch' => ['user_gest' => Yii::$app->user->id]]);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }