Symfony 4 :AJAX

preview_player
Показать описание
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:
Рекомендации по теме
Комментарии
Автор

Uff dude, 6 hours in a problem with this theme then saw you video and resolve the problem in 10 min. Thanks!!!!

tescan
Автор

Hello dude! Thank you very much ;) I've shared your channel with the biggest php French web dev community. You're the best, keep going on mate !

LaravelJutsu
Автор

thanks man, I always do it manually, this helped me to improve, didn't know about FOS, i'm new to symfony and I starting to like it.

GregorGonzalez
Автор

I like your videos, they are really useful.

ulukulanbekov
Автор

Hello, sorry for asking this here but do someone know how to replace the setCircularHandler after symfony 4.2 ? Look like it's no longer avaliable

waksboy
Автор

I don't know if it can help . I want to say that I use StofDoctrineExtensionsBundle with Gedmo to the createdAt and updatedAt . But I don't know if there would be a performance alteration. thanks

kidkarate
Автор

Awesome :), Can you create a lesson on Symfony security bundle please, thank you in advance

Shambhu-lh
Автор

what's the annoying noise? It's really hard to concentrate.

phat
welcome to shbcf.ru