Zend pagination with limited number of links and dots between
问题 I have implemented a Zend Pagination but can't figure out how to limit the number of links in the pagination. I know about setPageRange, but it isn't exactly what i want. Currently the pagination looks like this. < | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | > But what i want is something like this: for page 1 < | 1 | 2 | 3 | ... | 14 | 15 | 16 | > for page 8 < | 1 | 2 | 3 | ... | 7 | 8 | 9 | ... | 14 | 15 | 16 | > for page 14 < | 1 | 2 | 3 | ... | 13 | 14 | 15 |