[Catalyst] Debugging DBIC inside a catalyst app
Eric W. Bates
ericx at vineyard.net
Thu Jun 22 00:20:32 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have read in the new Catalyst/Manual/Tutorial/CatalystBasics.pod (the
whole tutorial is very nice, btw) that you can invoke DBIC's debugging
inside your code thusly:
$class->storage->debug(1);
However, I cannot figure out where to get "$class". I have tried in a
controller:
as a fully named model class method:
HG::Model::HorshamDB::Plants->storage()->debug(1);
as an abbreviated model class method:
HorshamDB::Plants->storage()->debug(1);
from the Catalyst object:
$c->model('HorshamDB::Plants')->storage()->debug(1);
Thanks for your time.
- --
Eric W. Bates
ericx at vineyard.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEmcYwD1roJTQ4LlERAqX3AKCx0O2R2FJsUvz3lTHCoKADwh9HSQCgn9M1
/CBGHa1wU3AthPx0qKnhMWo=
=MljZ
-----END PGP SIGNATURE-----
More information about the Catalyst
mailing list