作者:赵 时间:2019-05-14 11:06:27
1.form表单,action指向当前页面,get请求=method
2.控制器, $key=$this->request->get('key');
$key=$this->request->get('key');
3.添加搜索where条件->where('title','like',"%{$key}%")
->where('title','like',"%{$key}%")
4.or搜索->whereor('content','like',"%{$key}%")
->whereor('content','like',"%{$key}%")