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


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to