Re: [Catalyst] Getting DBIC schema from outside Catalyst?

2017-03-09 Thread Dr. Jennifer Nussbaum
Thank you! This is very simple and enormously helpful. Jen From: Eden Cardim To: The elegant MVC web framework Sent: Thursday, March 9, 2017 7:16 AM Subject: Re: [Catalyst] Getting DBIC schema from outside Catalyst? If you want to

Re: [Catalyst] Getting DBIC schema from outside Catalyst?

2017-03-09 Thread Eden Cardim
On Wed, Mar 8, 2017 at 6:15 PM, Robert Brown wrote: > Hi Jen, > > You can use MyApp::Schema outside of Catalyst: > > my $schema = MyApp::Schema->connect( $ENV{ LIVE } ? 'live' : 'dev' ); > > (I'm additionally using DBIx::Class::Schema::Config to be able to connect > to

Re: [Catalyst] JSONP support Catalyst::Controller::DBIC::API

2017-03-09 Thread Rajesh Kumar Mallah
For the time being i have modified and solved my issue as below: sub end : Private { my ( $self, $c ) = @_; ## # code for manipulating stash here ## $c->forward('serialize'); my $cb = $c->request->params->{callback} ; if ($cb) { my $body =