[Solar-talk] pager + controller + model + view
Paul M Jones
pmjones at ciaweb.net
Wed Jul 11 10:09:34 CDT 2007
On Jul 11, 2007, at 10:05 AM, Rodrigo Moraes wrote:
> 2007/7/11, Paul M Jones:
>> >> That would end up looking something like:
>> >>
>> >> $this->pager = array(
>> >> 'total' => 100,
>> >> 'pages' => 20,
>> >> 'page' => 1,
>> >> 'paging' => 5,
>> >> );
>> >
>> > Ah, also I changed it later to follow fetchCount() keys. The pager
>> > helper now uses exactly these keys you mentioned. :)
>
> This was not completely right. Actually I followed
> Solar_Sql_Select::countPages(), so the pager accepts a spec with the
> keys 'count', 'pages', 'page' and 'paging'. I'm not sure were
> fetchCount() is... although it seems a good name for countPages(). :)
I am a big dummy -- it *is* countPages(). I confused my own common
use of $total = array('count' => ..., 'pages' => ...) with the
return. Please disregard, 'count' instead of 'total' is the right
key to use. Thanks for calling me on this one. :-)
>> Ah, and now we get back to page-controller helpers, I see how you try
>> to lead me around ... ;-)
>
> hehe. it's my job to keep pushing funny ideas; some of them have to
> work one day. :P
The same way I work; 1 Paul == 1 million monkeys. ;-)
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Join the Solar community wiki! <http://solarphp.org>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the Solar-talk
mailing list