[Solar-talk] pager + controller + model + view
Jeff Surgeson
solar at 3hex.com
Wed Jul 4 16:37:46 CDT 2007
> I've committed it: the 'count' and 'simple' adapter locale
> replacements were fixed and fetch() now receives 2 parameters only:
> $href and an array $spec. You can pass 'count' or 'pages' in the spec;
> the first is preferable as the later will have to guess the number of
> items. I think this makes it more simple to use; let me know if I
> broke it completely. :)
I think you might have, small oops in adapter.php line 173
$this->_pages = $spec['paging'] > 0 ? ceil($count / $spec['paging']) : 0;
that should be, i think
$this->_pages = $spec['paging'] > 0 ? ceil($spec['count'] / $spec['paging']) :
0;
Let you know if I find anything else :-)
--
...........::::::...........
Jeff Surgeson / South Africa
More information about the Solar-talk
mailing list