/** * Lists all Sot2 models. * @return mixed */ public function actionIndex() { //print_r($this->getScripts()); /** * PLSQL ! Array Data Provider * @author ptrnov [piter@lukison.com] * @since 2.1 */ $plsql_so_1 = new ArrayDataProvider(['key' => 'ID', 'allModels' => $this->getScripts(), 'pagination' => ['pageSize' => 500]]); /** * PLSQL ! Column Label * @author ptrnov [piter@lukison.com] * @since 2.1 */ $attributeField = $plsql_so_1->allModels[0]; //get label Array 0 //print_r($plsql_so_1->allModels); $searchModel = new Sot2Search(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'dataProviderX' => $plsql_so_1, 'attributeField' => $attributeField]); }
/** * Lists all Sot2 models. * @return mixed */ public function actionIndex() { //print_r($this->getScripts()); /** * PLSQL ! Array Data Provider * @author ptrnov [piter@lukison.com] * @since 2.1 */ $plsql_so_label = new ArrayDataProvider(['key' => 'ID', 'allModels' => $this->getScripts(), 'pagination' => ['pageSize' => 500]]); $attributeField = $plsql_so_label->allModels[0]; //get label Array 0 $attDinamik = []; foreach ($attributeField as $key => $value) { $attDinamik[] = [$key]; } //print_r($attDinamik); $plsql_so_1 = new ArrayDataProvider(['key' => 'ID', 'allModels' => $this->getScripts(), 'pagination' => ['pageSize' => 500]]); // $plsql_so_detail= new ArrayDataProvider([ // 'key' => 'ID', // 'allModels'=>$this->getScriptsDetail(), // 'pagination' => [ // 'pageSize' => 500, // ] // ]); /** * PLSQL ! Column Label * @author ptrnov [piter@lukison.com] * @since 2.1 */ $attributeField = $plsql_so_1->allModels[0]; //get label Array 0 // $attDinamik=[]; // foreach($attributeField as $key =>$value) // { // $attDinamik[]=[$key]; // } // print_r($attDinamik); // $attributeField1=$plsql_so_detail->allModels[0]; // print_r($plsql_so_1->getModels()); $tes1 = $plsql_so_1->getModels(); $searchModel = new Sot2Search(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'dataProviderX' => $plsql_so_1, 'attributeField' => $attributeField]); }