[Catalyst] Additional scripts accessing the Model and Config?
Luis Muñoz
luisemunoz at gmail.com
Fri Jun 8 18:05:31 GMT 2012
On Jun 8, 2012, at 1:15 PM, Tomas Doran wrote:
> You don't.
> $c implies a web request context, which you don't have.
That explains a lot :-)
> You can, however, call things as class methods, so:
>
> $self->application_name->model('DB')->schema->foo
>
> should work from inside your script, for example.
But still, I would like to have access to the configuration data (for instance, how to setup the database/ldap/whatever Model, etc). Does that happen as well when using the class method?
Best regards
-lem
More information about the Catalyst
mailing list