[Catalyst] Catalyst 5.7012
Jonathan Rockway
jon at jrock.us
Mon Dec 24 13:26:14 GMT 2007
On Mon, 2007-12-24 at 13:13 +0000, Anthony Gardner wrote:
> Sorry, missed a bit .........
>
> lib/TestApp/Controller/Person.pm
> ...
> sub list : Local {
> my ($self, $c) = @_;
>
> $c->stash->{people} =
> [$c->model('TestAppDB')->resultset('Person')->all()];
>
> $c->stash->{template} = 'people/list.tt2';
> }
You named your model Person, but you are trying to get at it by calling
it TestAppDB.
Regards,
Jonathan Rockway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071224/7676a5f3/attachment.pgp
More information about the Catalyst
mailing list