[Catalyst] RE: DBIx::Class/TT Pager Question
Zbigniew Lukasiak
zzbbyy at gmail.com
Tue Jan 2 08:07:16 GMT 2007
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 <ddaupert at sbcglobal.net> 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: Catalyst at lists.rawmode.org
> Listinfo:
> http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
More information about the Catalyst
mailing list