-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

you can write your own service declaration for the esi service for your
application and pass an argument to the constructor with the types that
should be handled. see the default service configuration:
FrameworkBundle/Resources/config/esi.xml

@the gurus: is there a reason json is not in the default list?

cheers,
david


Am 06.04.2011 19:01, schrieb MMac:
> My use case:
> 
> I'm building an ajax application that, for each request, returns the
> parts of the page that need to be updated (via json). One 'page part'
> is a 'feed' twig template that renders article teasers through ESI tag
> calls. These esi tags are not parsed when returning the json object.
> Thus the site works fine in development but not in production with
> caching on.
> 
> I've taken a look in the Esi.class file and see line 39 setting the
> array of default content types to be parsed for Esi but I'm having
> trouble parsing esi tags, injecting the esi content, and returning a
> well formated json string.
> 
> Any help or thoughts would be much appreciated.
> 
> Thanks,
> Marc
> 

- -- 
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2dWpEACgkQqBnXnqWBgIt1qwCgl7BmLOhId7pqo5GP3pXCN7xg
UH8AmgOFjrXGmG2oPm/jm3sB8rl0UcYX
=QcCI
-----END PGP SIGNATURE-----

-- 
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 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

Reply via email to