I'm using CakePHP's paginate
method within a controller. I wish to find out how many pages of results were generated. This is easy enough within the view ($paginator->counter()
) but I'd like to access this information from within the controller itself. Any ideas?
$this->params['paging'][<MODEL NAME>]['pageCount']
try using this. I think it's what you need
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With