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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

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

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
