[Catalyst] getting the db connection used by catalyst

Daniel McBrearty danielmcbrearty at gmail.com
Tue Oct 3 23:53:46 CEST 2006


if you have a (dbix) database, and use it as a model, you generally
end up doing this :

$c->model-> ....

and the database connection is handled internally.

I now want to write another model which uses the db. It would be
better to use the existing connection that cat has created, rather
than create another one.

If I write a new() method for this model, does it have access to the
context? what is a good way to do this?

-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131



More information about the Catalyst mailing list