You could also try Catalyst::Example::InstantCRUD - it does paging (on
simple tables not on joins - but this should not be difficult to fix).

--
Zbyszek

On 12/31/06, Dennis Daupert <[EMAIL PROTECTED]> wrote:
Leandro wrote:
>Maybe you should try this...
>my $page = $c->req->params('page') || '';
>$c->stash->{photos} =
[$c->model('CatapultDB::Photos')->search(
>    {
>      'gallery.id' => $selected_gallery
>    },
>    {
>      join     => [qw/ gallery /],
>      prefetch => [qw/ gallery /],
>      rows     => 2,
>      page     => $page,
>    }
>)->all];

Leandro, that does work. Woo hoo!
I will go ahead and use that method, for now,
but it means I'll have to keep track of the pages
manually. I will keep working at trying to
make contact with the pager method, since that
will get to the goodies like the pager.previous_page
and pager.next_page. Even so, it's a relief to
get this part working. I thank you very much!

/dennis


_______________________________________________
List: [email protected]
Listinfo:
http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive:
http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/





--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to