On 6/15/06, Sarah Berry <[EMAIL PROTECTED]> wrote:
> I'm trying to learn how to use the database plugins, specifically DBIx. I
> set up my schemas to load from an existing database (hopefully), and now I
> want to test it out to see if I did that right. So I put the following lines
> into a page called dbixdemo.pm, in the "default" function:
>
> my $schema = VieSEB::Schema::SLogDB->new();
> my $crazy_attempt =
> $schema->resultset('SLogDB')->find(14);
Hi Sarah,
Make your calls in Controllers like this:
$c->model("VieSEB::Schema::SLogDB")->new();
$c->model("VieSEB::Schema::SLogDB")->search();
$c->model("VieSEB::Schema::SLogDB")->find();
Hope this helps,
Kevin
--
Kevin Old
[EMAIL PROTECTED]
_______________________________________________
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/