public function userlist(Request $request){
$data=$request->param('hotel_name');
if($data) {
$map = $data;
$user =new User_1Model();
$list =$user->where('hotel_name','like',"%$map%")->paginate(5);
}
else {
$list = User_1Model::paginate(5);
}
$count = User_1Model::count();
$this->assign('list',$list);
$this -> view -> assign('count', $count);
return $this->view->fetch();
$this->view->fetch();
} HTML页面用的$list->render()}分页 点击第二页的时候会传page的参数到后台,然后查询到的内容就不是提交查询的内容了