当前位置:网站首页>Tp5.1 paging (with parameter transfer)
Tp5.1 paging (with parameter transfer)
2022-07-25 02:34:00 【51CTO】
Controller code
With no arguments :
$rs = Db::name('admin')->order(['id'=>'desc'])->paginate(1);
Passing with parameters :
$rs=Db::name('admin')->where($where)->order(['id'=>'desc'])->paginate(10,false,['query' => request()->param()]);
['query' => request()->param()], How many parameters are passed will be automatically added to you , It doesn't need to be written like this, one parameter by one (->paginate(10,false,['query' => ['cate_id'=>$cate_id], ['keyword'=>$keyword]]); )
Templates :

{$page|raw}
CSS Page style
边栏推荐
- Using ODBC to consume SAP ABAP CDs view in Excel
- Redis tutorial
- Let's customize the loader
- Jenkins configuration plug-in interface displays "suggestions collection" in Chinese
- Why can't reading more books improve your writing?
- B2B e-commerce trading platform of heavy metal industry: breaking the state of data isolation and improving the benefits of heavy metal industry
- Solution to the occupation of project startup port
- Simulate the implementation of strstr
- Gbase 8s how to query relational databases in sentences to select sample syntax and results of data from complex types
- After working for two months in the summer vacation, I understood three routing schemes of keepalived high availability
猜你喜欢

Apk packaging process

Deep understanding of string class

ByteDance confirmation will be self-developed chip: for internal use only; Musk: I have uploaded my brain to the cloud; Go language product head leaves | geek headline

Solution to the occupation of project startup port

R language uses logistic regression, ANOVA, outlier analysis and visual classification iris iris data set

Explanation of C language file operation function

Creating elements of DOM series

Digital power supply -- Chapter 1

Pycharm writes SQLite statements without code prompts

6-11 vulnerability exploitation - use the built environment to send emails
随机推荐
Focus on improving women's and children's sense of gain, happiness and security! In the next ten years, Guangzhou Women's and children's undertakings will make such efforts
Simulate the implementation of StrCmp function
Generator set work arrangement problem code
Coal industry supply chain centralized mining system: digitalization to promote the transformation and upgrading of coal industry
Example demonstration of "uncover the secrets of asp.net core 6 framework" [02]: application development based on routing, MVC and grpc
Hongmeng harmonyos 3 official announcement: officially released on July 27; Apple slowed down the recruitment and expenditure of some teams in 2023; Russia fined Google 2.6 billion yuan | geek headlin
[system design] distributed key value database
Chinese son-in-law OTA Ono became the first Asian president of the University of Michigan, with an annual salary of more than 6.5 million!
How to upload files to the server
It's still a synchronization problem
On Calc optimization of calcite
Remote sensing image classification tool and visualization application of WebGIS
Android memory optimized disk cache
When sharing a folder, the 'attempt to share xxxxx
In the post deep learning era, where is the recommendation system going?
Mp4 package analysis
Vite dynamically loads static resource pictures, and fixes the 404 problem of pictures after packaging.
Use SAP ui5 application to consume create and delete operations of OData in business application studio
JVM Foundation
Ten year structure and five-year Life-03 trouble as a technical team leader