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