Symfony 4 :AJAX



Symfony 4 :AJAX

Symfony 4 :AJAX

Sorry for the delay, internet in this country is just plain shit and the video was about 3.6GB 🙂

This video covers how you can use both symfony 4 and ajax (XMLHttpRequest) together in a coherent way, this includes both how to send data from the back-end in json format (Serialization) and how to get back in the javascript section as a json response (JSON.parse(data)), otherthing this video goes through:

– Setting up symfony encore for assets management
– Installing & setting up FOS JS Routing to handle generating urls from the javascript files, also covers how to expose, debug and dump the routes
– How to serialize objects into json format and
– Covers how you can get around CircularReference Error in doctrine when serializing
– Creating AJAX requests : GET, POST, DELETE ..
– Creating a progress bar to display the progress in percentage (ProgressEvent), file download example
– Basic usage of promises instead of callback to avoid callbacks hell
– Listene for various events and send ajax request to the controller

Github repository:
https://github.com/konshensx16/symfon-ajax

Comments are closed.