right now it shows: prev 1 2 3 4 5 6 7 8 9 next
I need to show all the pages (ie) prev 1 2 3 4 5 6 7 8 9 10 11 12 13 ..and so on
here is the code
<?php echo $paginator->prev('Previous'); ?><big> </b>|<b>
<?php echo $paginator->numbers(array('separator'=>' </b>|<b> ')); ?> </b>|<b> </big>
<?php echo $paginator->next('Next'); ?>
According to the CakePHP documentation for the numbers method of the PaginatorHelper you can tell it how many items to display on either side of the current item by specifying the modulus
option.
Change your second line to this:
<?php echo $paginator->numbers(array('modulus'=>PHP_INT_MAX,'separator'=>' </b>|<b> ')); ?> </b>|<b> </big>