public function actionDelete($id)
 {
     $model = $this->findModel($id);
     $model->delete();
     $sql = SqlData::getDropFieldSql($model->table, $model->name_en);
     // LuLu::execute($sql);
     CacheUtility::createFieldCache();
     return $this->redirect(['index', 'tb' => $model->table]);
 }
 public function actionDelete($tb)
 {
     $model = $this->findModel($tb);
     $model->delete();
     DefineTableField::deleteAll(['table' => $tb]);
     $sql = SqlData::getDropTableSql($tb);
     LuLu::execute($sql);
     CacheUtility::createTableCache();
     CacheUtility::createFieldCache();
     return $this->redirect(['index']);
 }