Johan Lindström wrote:
At 11:21 2008-02-11, Alex Povolotsky wrote:
Looking at Catalyst::Enzyme::CRUD::Controller
.....
$c->stash->{items} = [ $model->retrieve_all() ];
.....
what should I change?
If you're a newbie, I think it's a mistake to go down the Class::DBI
route instead of using DBIx::Class. Which means, don't use
Catalyst::Enzyme (which is tied to CDBI). So the long/medium term
answer to your question is: change to another Catalyst CRUD module.
I'm sure the list can provide default recommendations.
But the short term answer to your question is here:
http://search.cpan.org/~tmtm/Class-DBI-v3.0.17/lib/Class/DBI.pm#search
Looks reasonable; I'm trying to untie Enzyme from CDBI.
Alex.
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/