我知道,可以用<?php echo $this->_currentPage; ?>單獨輸出當(dāng)前頁碼,但是當(dāng)前總頁數(shù)totalPage如何單獨輸出呢?ps:版本為Typecho 0.8/10.8.15
1 回答

慕后森
TA貢獻(xiàn)1802條經(jīng)驗 獲得超5個贊
當(dāng)前頁碼:<?php if($this->_currentPage>1) echo $this->_currentPage; else echo 1;?>
總頁碼:<?php echo ceil($this->getTotal() / $this->parameter->pageSize); ?>
針對typecho1.0的不知道對于0.8好用不,你可以試試
- 1 回答
- 0 關(guān)注
- 121 瀏覽
添加回答
舉報
0/150
提交
取消