/** * 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]); }
public function register() { return parent::register(); // do your magic }
public function actionImport() { $searchModel = new FrendsSearch(); $searchModel->importAccountFrend(); return $this->redirect(['frends']); }