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.
You don't.
$c implies a web request context,
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.
Hi!
On Fri, Jun 08, 2012 at 02:05:31PM -0400, Luis Muñoz wrote:
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?
We pack our config (which basically is
Example of pulling the standard catalyst config into a
command-line-type-usage script (works nicely from the scripts/ directory):
use FindBin qw($Bin);
use Path::Class;
use lib dir($Bin, '..', 'lib')-stringify; # cross-platform
# Now that we have the local LIB directory in our @INC path, get
On Tue, Jun 5, 2012 at 11:29 PM, Drew Taylor d...@drewtaylor.com wrote:
On Tue, Jun 5, 2012 at 8:25 AM, Seth Daniel catal...@sethdaniel.org
wrote:
I found CatalystX::JobServer mentioned in a thread from about a year
ago.
This is a bit off topic, and maybe not a very useful question (as I
On 8 Jun 2012, at 19:05, Luis Muñoz wrote:
he configuration data (for instance, how to setup the database/ldap/whatever
Model, etc). Does that happen as well when using the class method?
Sorry - I'm confused - how does calling into the app to get stuff as
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,
Hello,
On Fri, Jun 8, 2012 at 11:33 AM, Luis Muñoz luisemu...@gmail.com wrote:
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,