Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Release of Circular, a Silex-based tweet scheduling app
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Julien Chaumond  
View profile  
 More options Oct 31 2012, 2:26 pm
From: Julien Chaumond <chaum...@gmail.com>
Date: Wed, 31 Oct 2012 11:26:55 -0700 (PDT)
Local: Wed, Oct 31 2012 2:26 pm
Subject: Release of Circular, a Silex-based tweet scheduling app
Hi all,

I've just launched Circular, an open source tweet scheduling app built
on Backbone.js and a simple Silex-based REST API: http://circular.io
and on Github: https://github.com/julien-c/Circular/

The frontend is pure static HTML and JS, communicating with a pure
JSON API – I feel like Silex is the perfect framework for this type of
architecture.

Here are a couple questions I had while developing the Silex part of
the app:

1/
$app->json() is not consistent with PHP's json_encode when applying on
an empty PHP array ($app->json() returns the empty object, `{}`, while
json_encode returns the empty array, []).
Is this the expected behavior, and why?

2/
When looking to accept JSON requests in the request's body (which
Backbone does by default), I'd like to retrieve the whole parameter
set/object at once (not attribute per attribute through $request-

>request->get()) – is there any way I can do that, that would be more

elegant than just adding a `data` attribute to $app?

(The Silex code is here: https://github.com/julien-c/Circular/blob/master/api/index.php)

Thanks,

Julien

PS: If you like the app and you are on Hacker News, please consider
upvoting my post: http://news.ycombinator.com/item?id=4723591 – Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christophe COEVOET  
View profile  
 More options Oct 31 2012, 3:03 pm
From: Christophe COEVOET <s...@notk.org>
Date: Wed, 31 Oct 2012 20:03:00 +0100
Subject: Re: [Silex] Release of Circular, a Silex-based tweet scheduling app
Le 31/10/2012 19:26, Julien Chaumond a crit :

See https://github.com/symfony/symfony/issues/5506

--
Christophe | Stof

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien Chaumond  
View profile  
 More options Oct 31 2012, 3:10 pm
From: Julien Chaumond <chaum...@gmail.com>
Date: Wed, 31 Oct 2012 20:10:47 +0100
Local: Wed, Oct 31 2012 3:10 pm
Subject: Re: [Silex] Release of Circular, a Silex-based tweet scheduling app

Ok, thanks.

By the way, I realize my two questions are probably more "Symfony
Components"-related than specifically Silex, but when coming to Silex
directly (with no or little experience in Symfony) the line can be hard to
trace.

–
Julien


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
davedevelopment  
View profile  
 More options Oct 31 2012, 6:44 pm
From: davedevelopment <dave.marsh...@atstsolutions.co.uk>
Date: Wed, 31 Oct 2012 15:44:13 -0700 (PDT)
Local: Wed, Oct 31 2012 6:44 pm
Subject: Re: Release of Circular, a Silex-based tweet scheduling app

With regards to a more elegant way of accessing your JSON body, perhaps a
custom Request class? Something like this is reasonably elegant?

https://github.com/davedevelopment/Circular/commit/a7b22c8dcc383eef91...

It's not been tested! I've also not done it in any of my apps before, but
it should work in theory.

Regards

Dave M


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »