[Solar-talk] pager + controller + model + view
Jeff Surgeson
solar at 3hex.com
Wed Jul 4 04:06:27 CDT 2007
> 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);
and in my locale file changed
'PAGER_PAGE_X' => 'Page $d', (This does not work anyway)
TO
'PAGER_PAGE_X' => '%1$d',
Now when there is only one page it displays [1] instead of [Page 1 of 2]
--
...........::::::...........
Jeff Surgeson / South Africa
More information about the Solar-talk
mailing list