Пример #1
0
 /**
  * Lists all Frends models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new FrendsSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Пример #2
0
 public function register()
 {
     return parent::register();
     // do your magic
 }
Пример #3
0
 public function actionImport()
 {
     $searchModel = new FrendsSearch();
     $searchModel->importAccountFrend();
     return $this->redirect(['frends']);
 }