Exemplo n.º 1
0
 /**
  * (void) actionColMissing : 未配置字段
  */
 public function actionColMissing()
 {
     if (Yii::$app->request->get('type') == 'fetch') {
         $table = ColTable::showTables();
         $data = [];
         foreach ($table as $pbc_tnam) {
             $tmp = [];
             $tmp['pbc_tnam'] = $pbc_tnam;
             $tmp['pbc_cnam'] = implode(',', ColTable::getMissingColumnsByTablenam($pbc_tnam));
             $data[] = $tmp;
         }
         return Json::encode($data);
     }
     return $this->render('col-missing');
 }