[Catalyst] Additional scripts accessing the Model and Config?
Luis Muñoz
luisemunoz at gmail.com
Fri Jun 8 21:33:57 GMT 2012
On Jun 8, 2012, at 5:04 PM, Tomas Doran wrote:
> Sorry - I'm confused - how does calling into the app to get stuff as $self->application_name->model('Foo')->some_method(@stuff)
How does the Model, called like that, would know the details of where it is supposed to connect? Things like the DSN, username, password, etc are in config files whose reading is triggered "magically" by the Catalyst infrastructure. However that is not present when running as a script.
This is the reason for my question.
-lem
More information about the Catalyst
mailing list