コード例 #1
0
 /**
  * [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]);
 }
コード例 #2
0
 /**
  * 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]);
 }