随笔分类 -  ThinkPHP框架

摘要:public function get_list(where=array(),field="",$order = "id desc"){ field=empty(field)?"id,dy_url,start_num,end_num,is_pay,create_time,total_num,now_num,speed,status":$field; ... 阅读全文
posted @ 2019-01-15 15:32 phpwyl 阅读(391) 评论(0) 推荐(0) 编辑
摘要:/** * 时间段查询条件获取 * @param string star@paramstringend 获取结束时间的字段名 * @param string zdwhere/functionwheretime(start='start_time',end=endtime,zd='create_... 阅读全文
posted @ 2018-10-23 15:04 phpwyl 阅读(2315) 评论(0) 推荐(0) 编辑
摘要:切换验证码 document.getElementById('img_code_1').src="__URL__/verify/"+Math.random(1,9999); 生成验证码 <img src="{:U('Home/User/verify',array())}" id="img_code_ 阅读全文
posted @ 2018-04-18 16:51 phpwyl 阅读(150) 评论(0) 推荐(0) 编辑
摘要:<?php namespace Home\Model; use Think\Model; class UserModel extends Model{ protected patchValidate=true;protected_validate = array( ['username','require','请输入用户名'], // 在新增的时候验证name... 阅读全文
posted @ 2018-04-18 15:45 phpwyl 阅读(1105) 评论(0) 推荐(0) 编辑
摘要:在Common目录中建立 function.php {$vo.goods_name|subtext=10} 调用方法传参数 阅读全文
posted @ 2018-04-17 15:16 phpwyl 阅读(933) 评论(0) 推荐(0) 编辑
摘要:解决该问题需要 清除缓存文件 将retime下的文件删除 阅读全文
posted @ 2018-04-12 16:00 phpwyl 阅读(281) 评论(0) 推荐(0) 编辑
摘要:{$vo.create_time|date="Y-m-d H:i:s",###} 阅读全文
posted @ 2018-04-12 14:06 phpwyl 阅读(2803) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示