Catalyst::Controller::DBIC::API was written for exactly that use case.
Cheers, Alex
Am 2011-09-12 16:38, schrieb Roland Philibert:
Thanks all for your suggestions so far.
I was I guess on the right track with JSON:XS but I had also seen REST
but so far I am still unsure as what the best way to
: Eden Cardim [mailto:edencar...@gmail.com]
Sent: 12 September 2011 21:31
To: The elegant MVC web framework
Subject: Re: [Catalyst] RE: DBIC - JSON conversion for AJAX
Roland == Roland Philibert rphilib...@aptina.com writes:
Roland Thanks all for your suggestions so far. I was I guess
',
});
$self-status_ok(
$c,
entity = \@arr
);
}
-Original Message-
From: Roland Philibert [mailto:rphilib...@aptina.com]
Sent: 14 September 2011 15:54
To: The elegant MVC web framework
Subject: RE: [Catalyst] RE: DBIC - JSON conversion for AJAX
rest object was showing just the number of row retrieved
ie: {rest:80}
-Original Message-
From: ian.doche...@nomura.com [mailto:ian.doche...@nomura.com]
Sent: 14 September 2011 16:13
To: catalyst@lists.scsys.co.uk
Subject: RE: [Catalyst] RE: DBIC - JSON conversion for AJAX
search calls
On Wed, Sep 14, 2011 at 11:44 AM, Roland Philibert rphilib...@aptina.comwrote:
I did try what you suggest as per:
sub thing_GET {
my ($self, $c) = @_;
$self-status_ok(
$c,
entity = $rs =
$c-model('DB::data)-search({},{result_class =
: Roland Philibert [mailto:rphilib...@aptina.com]
Sent: 14 September 2011 16:44
To: The elegant MVC web framework
Subject: RE: [Catalyst] RE: DBIC - JSON conversion for AJAX
I did try what you suggest as per:
sub thing_GET {
my ($self, $c) = @_;
$self-status_ok
Thanks for the tip Ronald, works like nicely.
Cheers,
Roland
From: Ronald J Kimball [mailto:rkimb...@pangeamedia.com]
Sent: 14 September 2011 16:59
To: The elegant MVC web framework
Subject: Re: [Catalyst] RE: DBIC - JSON conversion for AJAX
On Wed, Sep 14, 2011 at 11:44
: Roland Philibert [mailto:rphilib...@aptina.com]
Sent: 14 September 2011 16:44
To: The elegant MVC web framework
Subject: RE: [Catalyst] RE: DBIC - JSON conversion for AJAX
I did try what you suggest as per:
sub thing_GET {
my ($self, $c) = @_;
$self-status_ok
: Eden Cardim [mailto:edencar...@gmail.com]
Sent: 12 September 2011 21:31
To: The elegant MVC web framework
Subject: Re: [Catalyst] RE: DBIC - JSON conversion for AJAX
Roland == Roland Philibert rphilib...@aptina.com writes:
Roland Thanks all for your suggestions so far. I was I guess
Roland
I like to use Catalyst::Controller::REST which will do the decoding and
encoding of JSON for you. The module has some good examples.
I also like to 'decouple' the DBIC object from my view, so that I only pass in
the values, not the object.
my $object =
Thanks all for your suggestions so far.
I was I guess on the right track with JSON:XS but I had also seen REST
but so far I am still unsure as what the best way to go.
Aptina (UK) Limited, Century Court, Millennium Way, Bracknell, Berkshire, RG12
2XT. Registered in England No. 06570543.
This
11 matches
Mail list logo