Could you clarify what the 'proper' way is please. Thanks.
On 21 April 2010 14:02, Massimiliano Arione <garak...@gmail.com> wrote: > On 21 Apr, 14:39, Gareth McCumskey <gmccums...@gmail.com> wrote: > > And if you had to create a restful api that returns content as JSON? > > Returning JSON using renderText is perfectly valid and does not break > > the seperation of concerns. The actions responsibility is to recieve a > > request, gather data needed for the response and pass that data to the > > template and/or requesting service. JSON is just a data format (well > > within the actions field of responsibilities) not Javascript. > > Of course, I didn't mean the json part when I spoke of separation. > That part is perfect, and after all is the only way to use ajax. > The "wrong" part is the use of jq_javascript_tag() helper, that > implies writing javascript code into html. > > cheers > Massimiliano > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en