Thank you! This is very simple and enormously helpful.
Jen
From: Eden Cardim <[email protected]>
To: The elegant MVC web framework <[email protected]>
Sent: Thursday, March 9, 2017 7:16 AM
Subject: Re: [Catalyst] Getting DBIC schema from outside Catalyst?
If you want to reuse the configuration from MyApp:
use MyApp;
my $schema = MyApp->model('DBICModelName')->schema;
You may need to adjust @INC accordingly, etc.
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/