[Solar-talk] pager + controller + model + view

Rodrigo Moraes rodrigo.moraes at gmail.com
Wed Jul 4 05:27:16 CDT 2007


2007/7/4, Jeff Surgeson :
> > I do have one query with regards this on the count adapter.
> >
> > Lets say that the item count is 2 so there is only 1 page with 2 two
> > records displayed the pager output is
> >
> > Page 1 of 2
> > this cant be correct because there are only 2 records and 1 page
> To solve this I did the following:
>
> In Count.php I changed
>
> $text = $this->_view->getText('PAGER_PAGE_X_OF_Y', 1, $replace);
> TO
> $text = $this->_view->getText('PAGER_PAGE_X', 1, $replace);


Ah, indeed. There is an error there and this solves it; it's all about
the locale used when there are only one page. I haven't seem this
situation on my pages and so I haven't noticed it.

After your first report, I applied a similar fix but then I did a
stupid thing on my repo (reverted back by mistake, yikes!) and lost
the changes. I'll apply this again later. Many thanks! :)

-- rodrigo


More information about the Solar-talk mailing list