我在CakePHP中,初学者,我的版本是2.4.3超出范围页面的请求
在文件我在下面找到
public function index() {
try {
$this->Paginator->paginate();
} catch (NotFoundException $e) {
//Do something here like redirecting to first or last page.
//$this->request->params['paging'] will give you required info.
}
}
我的问题示例代码:
1.How到重定向到最后一页,有什么办法可以获得总页数?
2.我试图用debug()输出$ this-> request-> params ['paging'],但没有显示,只是一个空值,我做错了什么?
请帮帮我,认为不是可用
Got it!非常感谢你!! – Daruma