🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 常规方法 ID 37属于模型ID shop_content 模型所需表名称 ``` <?php $data = unserialize(base64_decode(DB('model')->where("id=37")->getField('data'))); foreach (DB()->query("SHOW FULL COLUMNS FROM {$_tb}shop_content") as $tb) { $tbs = $data[$tb['Field']]; ?> <div class="form-group"> <label class="col-sm-2 control-label"><?= $tbs['names'] ?></label> <div class="col-sm-9"> <?= form::init($tbs['types'], $tb['Field'], $row[$tb['Field']], $tbs['tips'], $tbs['attach'], $tbs['style'], $tbs['item']) ?> </div> </div> <?php } ?> ```