联系官方销售客服
1835022288
028-61286886
开发者工具中,生成一个上传文件的字段!
该代码在会员中心的模板中,无法直接调用?
我看开发者工具写了要新建一个字段?
如果是插件的表中的某个字段,那么怎么使用这个开发者工具生成的上传字段呢?
话说,做了那么多插件,还真是第一次做会员中心的,突然就不会了!!!
<?php \Phpcmf\Service::L('Field')->value=[];// 这里需要把[]改为储存数组变量,多个字段只需要赋值一次;?> <?php echo dr_fieldform('{"name":"身份证正面","fieldname":"id_card","ismain":"1","fieldtype":"File","setting":{"option":{"fieldtype":"","fieldlength":"","ext":"jpg,gif,png","size":"2","attachment":"0","image_reduce":"","is_ext_tips":"0","css":""},"validate":{"required":"0","pattern":"","errortips":"","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', $data['id_card'], 1, 1);?>