Two types of people: function (e) { ... } and function(e) { ... } All in one, amazing!
@inkrot-zar4 жыл бұрын
Author, thanks for idea. Still let me make a note for beginners: this approach is highly discouraged as a best practice. But it can be useful in supporting the old project. Sometimes it’s really easier to create a separate route to get a server side renderer form, so as not to rewrite the solutions.
@Wivern115 жыл бұрын
what is PostForm.vue? How do you combine vue.js and symfony application? what routes your http request - nginx or node.js ? I do not understand all the main basis :(((((
@alexweissnicht95456 жыл бұрын
I would be interested in a tutorial series about Symfony4+GraphQl. If you could do this, it would be very cool :-)
@OverSeasMedia6 жыл бұрын
I would be interested too lol, I'll see if I can dig up something about this, I'm not experienced at all when it comes to graphql lol
@ICSVortex-DCS4 жыл бұрын
Hi bro. Trying to make the same, but have small issue. After Submit is prevented - you take e.taget and create formData in onSubmit. In my case after new FormData - it is empty. formData is empty. When I console log formData - it has only prototype. Any ideas why it happens? Btw, e.target in my case contains FORM html.
@OverSeasMedia4 жыл бұрын
Hmm interesting, can you please show me the html of the the form and the Js code ? You can email it to me if you feel like this ain't the place to post it (email in the about section of the channel)
@lilgab53392 жыл бұрын
@@OverSeasMedia is this problem already fixed?
@iamluckyduck3 жыл бұрын
Can you share your PhpStorm theme? :D
@helmis19184 жыл бұрын
Thank you alot for this tutorial, what's about validation ?
@almokhtar66566 жыл бұрын
*dude please more videos sf4+vue.js
@OverSeasMedia6 жыл бұрын
Alright I'll see if I can find some ideas to make videos about, thanks for the suggestion Mokhtar :)
@peterfrom80s3 жыл бұрын
Hi, I would certainly not use the form approach at all here. If you switch Symfony forms to JS ones and will be posting data with Axios, why to use SF forms at all? In controller method I would use that Tutorial entity/model/class as you already using, but put on it annotations for Symfony validation. After that in Controller you can populate this class with Symfony Serializer and validate it with Symfony Validator. Much more lightweight. And if you load it as Doctrine entity before populating, you can also save/update it with Doctrine as you wish.
@LukaszFeller4 жыл бұрын
@OverSeas what about form validation? How would you react to invalid form data and error messages, especially if you have a more complicated fields structure?
@OverSeasMedia4 жыл бұрын
Well this is not the best thing to do but if you had to you can just send to form to be validated server side and then replace the old one with the new form which will contains the errors from the server side
@LukaszFeller4 жыл бұрын
@@OverSeasMedia yes, but then you will loose all the events attached eventually to the form elements.
@ICSVortex-DCS5 жыл бұрын
I agree, u are not a trash! Would love to see more videos
@OverSeasMedia5 жыл бұрын
I appreciate that mate, I really do . Thank you :)
@malekmessaadi59766 жыл бұрын
thnx man, une serie sur Symfony 4 REST ça sera cool
@OverSeasMedia6 жыл бұрын
You're welcome Malek , Yeah i was actually preparing something like that before, it's gonna happen I just don't know when, my full-time job makes it hard to maintain a schedule for this stuff
@germdz2 жыл бұрын
Excelent!!
@haroldfinch19003 жыл бұрын
the actual content is good, but you are typing to fast and this many corrections are hard to watch.