/** * [renderContent description] * @return [type] [description] */ public function run() { $searchModel = new AddressSearch(); $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams(), $this->module, $this->id); return $this->render('@frenzelgmbh/cmaddress/widgets/views/_address_grid', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }
/** * Lists all Address models. * @return mixed */ public function actionIndex() { $searchModel = new AddressSearch(); $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams()); return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }