Try:
if ($this->Paginator->counter(array('format' => '%count%')) == 0) {
// no records, don't show links!
}
-jeremy
On Thursday, April 26, 2012 9:17:49 AM UTC-7, JonStark wrote:
>
> How can I hide the "<< Previous Next >>" that appears if there is no
> pages to paginate ?
> I think this is possible because the numbers do not appear when not needed.
>
> Thanks a lot !
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php