[Catalyst] Working with project
orasnita at gmail.com
Sun Sep 5 06:58:11 GMT 2010
Have you tried to use in your main configuration file something like:
and in your Catalyst configuration file something like:
and in the db.conf:
----- Original Message -----
From: "Leandro Hermida" <softdev at leandrohermida.com>
To: "The elegant MVC web framework" <catalyst at lists.scsys.co.uk>
Sent: Sunday, September 05, 2010 2:14 AM
Subject: Re: [Catalyst] Working with project configurationfileoutsideofCatalyst directory
> 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?
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://firstname.lastname@example.org/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst