[Solar-talk] pager + controller + model + view
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Jul 11 10:05:04 CDT 2007
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(). :)
> 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
-- rodrigo
More information about the Solar-talk
mailing list