查询目标表的记录数:
$total = $this->where($where)->count(1);
$page = new Page(22);
print_r($page);
app\common\controller\Page Object
(
[totalRows] => 22
[listRows] => 20
[firstRow] => 0
[nowPage] => 1
[totalPage] => 2
)
查询目标表的记录数:
$total = $this->where($where)->count(1);
$page = new Page(22);
print_r($page);
app\common\controller\Page Object
(
[totalRows] => 22
[listRows] => 20
[firstRow] => 0
[nowPage] => 1
[totalPage] => 2
)