上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 40 下一页
摘要: //视图<form action="/homework/homework/index" method="get"> <input type="text" name="name" placeholder="请根据姓名进行搜索"> <input type="text" name="price" plac 阅读全文
posted @ 2021-08-24 18:27 王越666 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 表单展示页面 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-sca 阅读全文
posted @ 2021-08-23 21:07 王越666 阅读(19) 评论(0) 推荐(0) 编辑
摘要: */ public function save(Request $request) { // $params = $request->param(); $file = $request->file('img'); $rule = [ 'account' => 'require|unique:twoe 阅读全文
posted @ 2021-08-23 15:20 王越666 阅读(28) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/ 阅读全文
posted @ 2021-08-23 15:14 王越666 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 1、设计数据库表名,字段 2,建立模型 <?php namespace app\login\model; use think\Model; class LoginLon extends Model { // protected $table = 'loginLog'; protected $crea 阅读全文
posted @ 2021-08-21 09:01 王越666 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1、将下载好的字体引入至 thinkPHP 框架的public/static 下(这里我建了一个文件夹叫font) (1.) (2.) 2.将字体路径写入config.php中 'font'=>ROOT_PATH.'/public/static/font/simhei.ttf', 3.(结合上一篇t 阅读全文
posted @ 2021-08-20 21:09 王越666 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 路由 use think\Route; //展示添加表单 Route::get('create','user/user/create'); //表单提交数据 Route::post('save','user/user/save'); //展示数据 Route::get('index','user/u 阅读全文
posted @ 2021-08-20 20:30 王越666 阅读(46) 评论(0) 推荐(0) 编辑
摘要: <link rel="stylesheet" href="__STATIC__/layui/css/layui.css" media="all"> <script src="__STATIC__/layui/layui.js"></script> <form class="layui-form" a 阅读全文
posted @ 2021-08-20 09:53 王越666 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 方式一:独立验证 // 验证1、独立验证 //验证的规则 $rule = [ 'name' => 'require|max:25', 'username' => 'require', 'password' => 'require', 'email'=>'require' ]; // 验证的错误信息 阅读全文
posted @ 2021-08-18 15:38 王越666 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1.首先在Local创建一个基类控制器 D:\PHP\phpstudy_pro\WWW\1906A\pyg>php think make:controller goods/Base --plain Controller created successfully. 2:判断页面是否有session值, 阅读全文
posted @ 2021-08-18 14:15 王越666 阅读(240) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 40 下一页