Symfony2 AJAX preparation

As I was going I was advised that the Symfony2 comes with a reverse proxy already built-in which is written in php so it is not the most efficient.
However does the job, and I can do AJAX with it, without or with ESI (provided I enabled it on the config). So I will decide for now not to use ESI enabled, since it is not crucial at this point in time.

I also found out that a best start to work on sf2 and AJAX, is to use jquery which makes it easy to work with.
No need for helpers as we can include the javascript and do call ajax links that tie actions for controllers like:

<a id="ajax_link" href="{{ path('symfony_route') }}">Click this link </a>

Leave a Reply

Your email address will not be published. Required fields are marked *