Home > php教程 > php手册 > thinkphp3.2最新版的分页文件可带ajax功能

thinkphp3.2最新版的分页文件可带ajax功能

WBOY
Release: 2016-06-07 11:36:39
Original
1597 people have browsed it

这是thinkphp3.2最新版的分页类文件 美观好用
效果,可带ajax 功能
thinkphp3.2最新版的分页文件可带ajax功能    /**<br>      * 品牌列表<br>      */<br>     public function brandList(){  <br>         $model = M("Brand");                <br>         $count = $model->count();        // 先算出总记录数<br>         $Page  = new Page($count,10);  // 每页条数<br>         $show  = $Page->show(); // 分页显示导航条<br>         $brandList = $model->order("`order` desc")->limit($Page->firstRow.','.$Page->listRows)->select();<br>         $this->assign('show',$show); // 保存到 魔板中去<br>         $this->assign('brandList',$brandList);<br>         $this->display('brandList');<br>     }<br> 学了有什么不明白的到>提问, 有专门老师长期免费辅导 群号 364702379

附件 Page.class.rar ( 2.18 KB 下载:192 次 )

AD:真正免费,域名+虚机+企业邮箱=0元

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template