Hi all, Some time ago we posted a JSON wiki page ( http://www.symfony- project.com/trac/wiki/AjaxAndJSON ) explaining our vision of using prototype/symfony/JSON in our application. I'd like to know if some of you have been using this technique and if some might be interested in discussion about a smarter way of using JSON.
I'm thinking about 2 major topics : 1) exporting symfony object from action to JSON directly and automaticaly by exporting all the action ($this->xxx) variables to JSON_decode and by-passing template for those actions. There are some hard point here but very nice things to do: * code generating prototype object from propel object * auto JSON coding/decoding * data transfert optimisation * error handling through JSON One quick use of this work might be admin generator / crud in ajax for free ? 1) Graceful degradation : how to still present data to the user witout ajax One last thing : this kind of approach is only interesting for highly dynamic/ high traffic web site because JSON helps very much to transfert some work to the client browser and keep bandwith very low. But the javascript code as to be done and is far more complicated tan doing nice PHP action ! Benoit --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
