[Catalyst] CDBI integration

Len Jaffe lenjaffe at jaffesystems.com
Tue Jun 13 05:14:12 CEST 2006



> Pablo Collins <pablo.collins at gmail.com> wrote:
> I have a bunch of Class::DBI packages in a
> directory/namespace outside of
> the catalyst app I'm building and I would like to
> make them available as the
> model layer.

The short, and unhelpful answer is that nearly
everybody around here, including myself, has drunk the
DBIx::Class Kool-aid, and have stopped using
Class::DBI   with Catalyst.

> It looks like if you want a model layer in catalyst,
> each class has to be
> inside the top-level namespace of the application. I
> would prefer to not
> have to create a package for each catalyst model
> class that says "package
> MyApp::Model::Foo; use base 'MyModel::Foo';" for
> each package. It would be
> neat if you tell the config where your model files
> live and have catalyst
> slurp them up.

Sounds like an excellent idea.  





More information about the Catalyst mailing list