chaihongjun.me

VSCode配置PHP Debug插件

VSCode配置PHP Debug插件

chaihongjun未知

最近正在学习TP5的框架,找到一份资料内容关于调试的部分有些久远了,而且讲的并不是很详细。为了能清晰的看到调试的结果,在网上搜寻了一圈终于搞...

thinkphp5.0 数据验证方式汇总

thinkphp5.0 数据验证方式汇总

柴宏俊chaihongjun.me

直接使用独立的 Validate 类,独立验证 use think\Validate ; // 验证规则 $rules = [ name = require|max:25 , email = email ] // 实例化验证对象 并导入规则 $validate = new Valida...

dedecms织梦系统全站内容json格式输出

dedecms织梦系统全站内容json格式输出

柴宏俊chaihongjun.me

?php$cfg_NotPrintHead=false;header(Content-Type:text/json;charset=utf-8);include_once(dirname(__FILE__)./include/common.inc.php);error_reporting(E_ALL||~E_NOTICE);require_once(DEDEINC./json.class.php);...