/** * Displays a single ActsDoc model. * @param integer $id * @return mixed */ public function actionView($id) { $searchModel = new ActstableSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams, $id); return $this->render('view', ['model' => $this->findModel($id), 'searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }
/** * Lists all ActsTable models. * @return mixed */ public function actionIndex() { $searchModel = new ActstableSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }