/** * Lists all Caja models. * @return mixed */ public function actionIndex() { $searchModel = new CajaSearch(); $subSearchTipo = new TipocajaSearch(); $subSearchPhy = new PhysicSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); $subDataProviderTipo = $subSearchTipo->search(Yii::$app->request->queryParams); $subDataProviderPhy = $subSearchPhy->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'subSearchTipo' => $subSearchTipo, 'subDataProviderTipo' => $subDataProviderTipo, 'subSearchPhy' => $subSearchPhy, 'subDataProviderPhy' => $subDataProviderPhy]); }
/** * Lists all Tipocaja models. * @return mixed */ public function actionIndex() { $searchModel = new TipocajaSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }