Re: [fw-general] Zend_Paginator Negative itemCountPerPage

2008-12-29 Thread Bradley Holt
Matt, No problem and thanks for the info! I'll keep using -1 for now since you say that will be forward-compatible. I've opened an enhancement ticket as ZF-5376: http://framework.zend.com/issues/browse/ZF-5376 Thanks, Bradley On Mon, Dec 29, 2008 at 5:18 PM, Matthew Ratzloff wrote: > Hi Bradley

Re: [fw-general] Zend_Paginator Negative itemCountPerPage

2008-12-29 Thread Matthew Ratzloff
Hi Bradley, Sorry about the confusion, I misread your requirement. The -1 trick is in fact not an intended feature (if it were, it would be 0, to be in line with typical PHP API), but if it works, use it for now. Whatever fix will just test for < 1, so your code should be forward-compatible. I h

Re: [fw-general] Zend_Paginator Negative itemCountPerPage

2008-12-29 Thread Bradley Holt
Matt, Taking a closer look at the documentation, the "All" scrolling style "returns every page." I'm not trying to show every page in the paginator control, I'm trying to have an infinite item count *per page* (which, of course, will make it so I have only one page of items). Like I said, passing

Re: [fw-general] Zend_Paginator Negative itemCountPerPage

2008-12-29 Thread Bradley Holt
Matt, I'll give that a try, thanks! Since I really just want to change the item count per page to "infinite" I was hoping I could simply do this by changing my "count" parameter (like I do with the 25, 50, and 100 selectors) and passing it on as is. I should probably just go ahead and enter a feat

Re: [fw-general] Zend_Paginator Negative itemCountPerPage

2008-12-29 Thread Matthew Ratzloff
Hi Bradley, Use the scrolling style "All" instead. Please see http://framework.zend.com/manual/en/zend.paginator.usage.html for more information. -Matt On Sun, Dec 28, 2008 at 6:40 PM, Bradley Holt wrote: > I was looking for a way to have Zend_Paginator show all of the items. > For example, I h

[fw-general] Zend_Paginator Negative itemCountPerPage

2008-12-28 Thread Bradley Holt
I was looking for a way to have Zend_Paginator show all of the items. For example, I have a selector that allows a user to show 25, 50, 100, or all records. I couldn't find any documentation but by experimenting I found that I could pass a negative one (-1) to setItemCountPerPage and it would show