上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 40 下一页
摘要: 当用户id为1时 展示全部权限 用户id为2时,展示用户管理权限 登录视图: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <!DOCTYPE HT 阅读全文
posted @ 2021-09-21 16:01 王越666 阅读(94) 评论(0) 推荐(0) 编辑
摘要: git clone git add . # 跟踪所有改动过的文件 git commit -m “commit message” # 提交所有更新过的文件 git checkout master # 切换到master分支 git checkout -b dev # 创建并切换到dev分支 git p 阅读全文
posted @ 2021-09-21 13:37 王越666 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 让需要展示页面控制器,继承Base即可 <?php namespace app\test\controller; use think\Controller; use think\Request; class Base extends Controller { public function __co 阅读全文
posted @ 2021-09-19 16:46 王越666 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 跨站脚本攻击(Cross Site Scripting),攻击者往Web页面里插入恶意Script代码,当用户浏览该页之时,嵌入其中Web里面的Script代码会被执行,从而达到恶意攻击用户的目的。 ThinkPHP防止XSS攻击的方法1 如果您的项目没有富文本编辑器 然后就可以使用全局过滤方法 在 阅读全文
posted @ 2021-09-19 11:34 王越666 阅读(323) 评论(0) 推荐(0) 编辑
摘要: git clone git add . # 跟踪所有改动过的文件 git commit -m “commit message” # 提交所有更新过的文件 git checkout master # 切换到master分支 git checkout -b dev # 创建并切换到dev分支 git p 阅读全文
posted @ 2021-09-18 13:30 王越666 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 1:php终端 安装扩展 使用Composer安装ThinkPHP5的图像处理类库: composer require topthink/think-image2:控制器代码: public function save(Request $request) { //接受前端全部参数 $data = $ 阅读全文
posted @ 2021-09-16 13:49 王越666 阅读(35) 评论(0) 推荐(0) 编辑
摘要: public function AddNews(){ $data = Request::instance()->param(); //接收文件 $file = request()->file('img'); //上传 $info = $file->move(ROOT_PATH . 'public' 阅读全文
posted @ 2021-09-16 13:28 王越666 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 路由 //商品模型展示的路由 Route::get('type','/pyg/good/listType'); //将type_id传送至/pyg/good/addType的路由 Route::get('addType','/pyg/good/addType'); 思路:1先去模型找见商品的类型 模 阅读全文
posted @ 2021-09-15 19:46 王越666 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 1.先创建好七牛云账号和存储空间 申请七牛云账号; 创建七牛云存储空间; 在账号的秘钥管理里面创建秘钥 获取AccessKey / SecretKey; 2.集成PHP-SDK 七牛云开发文档:https://developer.qiniu.com/kodo (一)Composer 安装 SDK(推 阅读全文
posted @ 2021-09-14 21:59 王越666 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 思路: 1.定义路由 2.查询顶级分类(pid=0)发送至制图 3.循环展示 4.给顶级分类下拉框绑定内容改变事件(JS:onchange、JQ:change) 5.获取到选中的option的value值(本分类的主键id) 6.根据ID发送ajax请求 7.后端定义新方法 8.接收ajax请求的i 阅读全文
posted @ 2021-09-13 22:23 王越666 阅读(70) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 40 下一页