[Catalyst] Access to DBIx schema from outside Catalyst

Eden Cardim edencardim at gmail.com
Mon Dec 7 16:50:59 GMT 2009


>>>>> "Dermot" == Dermot  <paikkos at googlemail.com> writes:

    Dermot> Hi, I haven't finished reading the book yet so I hope this
    Dermot> question won't be answered there.

    Dermot> If I have a Class outside my Cat App, I can have access to
    Dermot> that via C::Model::Adapator. Is there a method for giving
    Dermot> that external Class access to Catalyst features,
    Dermot> particularly the DBix schema and perhaps the debug and log
    Dermot> methods?

Both DBIx::Class::Schema and Catalyst::Log are regular perl classes
and you can use them anywhere in a perl program just like you'd use any
other class.

-- 
   Eden Cardim       Need help with your Catalyst or DBIx::Class project?
  Code Monkey                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://edenc.vox.com/            http://www.shadowcat.co.uk/servers/




More information about the Catalyst mailing list