
tp5+小程序开发笔记(三)REST(表述性状态转移)
表述性状态转移rest,使用json来描述数据 restful api是基于rest的api设计理论 特点:轻 / 使用json描述数据 / 无状态 HTTP动词 POST:创建 PUT:更新 GET:查新 DELETE:删除 状态码: ...
表述性状态转移rest,使用json来描述数据 restful api是基于rest的api设计理论 特点:轻 / 使用json描述数据 / 无状态 HTTP动词 POST:创建 PUT:更新 GET:查新 DELETE:删除 状态码: ...
AOP编程思想--面向切面编程 tp5路由: (设置了路由后pathinfo失效) Route::rule('路由表达式','路由地址','请求类型','路由参数(数组)','变量规则(数组)'); 请求类型:get post del...
1.引入css,js,img等最好使用asset 使用此方式,获取的是带域名的绝对路径 <link rel='stylesheet' href="{{asset('resause/i.css')}}"/> 2.测试数据库是否连接...
官方地址:http://layer.layui.com/ 简单的弹窗小案例 效果:在本页面弹框打开王明昌博客页面 HTML <a href="#" onclick="WeAdminShow('王明昌博客','http://www.wa...
$start = date("Y-m-d H:i:s",mktime(0, 0 , 0,date("m"),date("d")-date("w")+1,date("Y"))); $end = date("Y-m-d H:...
PHP需开启php_sockets 和 php_fileinfo 1.下载phpmailer https://sourceforge.net/projects/phpmailer/files/ 把下载的phpmailer放到vendor...
命令创建test模块 php think build --module test 转载: 1. 模块自动生成指令: 默认会读取应用目录application下面的build.php作为自动 生成的定义文件,如果你的定义文件位置...
HTML <a href="{{:url('card/cateEdit',['id'=>$vo.id])}}" class="layui-btn layui-btn-xs layui-btn">修改</a> c...
//更新,根据主键更新 $list = [ ['id'=>2,'config_name'=>'record_number','config_val'=>$data['record_number']], ...
初始化操作controller-----Admin.php <?php namespace app\admin\Controller; use think\Controller; use think\Request; class Ad...