[Catalyst] Shortcut to Model ?

Alan Humphrey alan.humphrey at comcast.net
Mon Jan 23 20:33:08 CET 2006


Beauty!  Now *that* works and is incredibly useful to boot.

So should $c->model() return anything?

BTW, in case anyone mistakes my comment about the Schema stuff being funky
as some sort of slam, that's not the intent.  It works great and has saved
me a ton of effort.  Highly recommended.

-----Original Message-----
From: catalyst-bounces at lists.rawmode.org
[mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of Brandon Black
Sent: Monday, January 23, 2006 11:20 AM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Shortcut to Model ?

On 1/23/06, Alan Humphrey <alan.humphrey at comcast.net> wrote:
> Maybe it's because I'm using that funky DBIx::Class schema stuff but
> $c->model returns 'BirdWeb::Admin::Model::BirdWebSchema::Attributes'.
>
> This is a table class name, not a model.
>
> What *should* be there?
>

$c->model('BirdWebSchema')

Should return the model object/class/whatever for
"BirdWeb::Admin::Model::BirdWebSchema"

-- Brandon

_______________________________________________
Catalyst mailing list
Catalyst at lists.rawmode.org
http://lists.rawmode.org/mailman/listinfo/catalyst




More information about the Catalyst mailing list