[Catalyst] Additional scripts accessing the Model and Config?
bobtfish at bobtfish.net
Fri Jun 8 17:15:22 GMT 2012
On 7 Jun 2012, at 23:17, Luis Muñoz wrote:
> The part that's stumping me is how to go within Dump.pm about obtaining a $c that allows me to get to the configuration (taken from the same place where the web application takes it) and the model.
$c implies a web request context, which you don't have.
You can, however, call things as class methods, so:
should work from inside your script, for example.
More information about the Catalyst