💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 常规方法 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 } ?> ```