[Catalyst] Working with project configuration fileoutsideofCatalyst directory

Leandro Hermida softdev at leandrohermida.com
Sat Sep 4 23:14:24 GMT 2010

Hi there,

But none of these solutions solve the problem I mentioned in my
earlier email.  If for example you have your database connection
information in the parent project configuration file which would be
common since many things outside of Catalyst need to access the
database and in this file you would have it look like this:

   schema_class ...
       dsn ...
       username ...
       password ...
       AutoCommit 1

And in the Catalyst configuration file if you include the parent
config it won't work since Catalyst::Model::DBIC::Schema seems to need
the enclosing tags to start with Model:: i.e. <Model::MyDB>
</Model::MyDB>.  Of course it doesn't make sense to use such tags in
the parent configuration.

Does anyone know of a way to have Catalyst::Model::DBIC::Schema look
for a different set of tags in the Config::General file?


More information about the Catalyst mailing list