post带参数的分页,实现方式
最近又在为tppost分页分心,不过这次却有重大发现,终于把post带参数分页功能实现了,如下:
post到index
function index($key=''){
//其他省略,只写关键的
if($mykey){
$where['title']=array('like','%'.trim($mykey).'%');
self::assign("mykey",$mykey);
}
...
$Page = new \Think\Page($count, $size=10); //count总数 $size每页显示数
$Page -> parameter['mykey']=$mykey;
parameter['mykey']=$mykey; >> 这句很关键,有多少个参数,就写多少个参数哦
}
AD:真正免费,域名+虚机+企业邮箱=0元

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function