[Catalyst] paging with Data::Page

Michael Reddick michael.reddick at gmail.com
Mon Jul 27 23:18:05 GMT 2009


>
> If the $pager is telling you the correct information (that the query only
> has 10 entries) but this is changing by the time it is being rendered in
> your template then perhaps another call is being made to the database (i.=
e.
> because something else is changing $c->stash->result).
>

Based on the docs, it looks like calling ->page doesn't affect the resultset
you call it on but it returns another one with the paging. So you need to
set the result stash variable to the return value of the ->page call.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090727/98d61=
445/attachment.htm


More information about the Catalyst mailing list