You can also apply css styles to them, and use the right style to set display: 
none:

echo $this->Paginator->first('<<', array('class' => 'arrow'), null, 
array('class' => 'arrow disabled'));

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 26 Apr 2012, at 19:18:29, jeremyharris wrote:

> 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

-- 
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

Reply via email to