[Catalyst] DBIx::Class/TT Pager Question

Chisel Wright chisel at herlpacker.co.uk
Fri Dec 29 17:05:41 GMT 2006


On Fri, Dec 29, 2006 at 08:35:34AM -0800, Dennis Daupert wrote:
>        $c->stash->{photos} = [$c->model('CatapultDB::Photos')->search(
...
>        )];
> 
>    $c->stash->{pager} => $c->stash->{photos}->pager(); # ???

I think you need to lose the square brackets, and you will probably find
you then have a DBIx::Class::ResultSet, which does have the pager()
method.

I can't remember what [$c->model(...)->search(...)] returns but I don't
think you get a ResultSet object.

Chisel
-- 
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/

  This is not an automated signature.
  I type this in to the bottom of every message.



More information about the Catalyst mailing list