Using Symfony FormBuilder & Vue: My approach (READ THE DESC)

  Рет қаралды 10,152

OverSeas Media

OverSeas Media

Күн бұрын

Пікірлер: 22
@cantTouch948
@cantTouch948 3 жыл бұрын
Two types of people: function (e) { ... } and function(e) { ... } All in one, amazing!
@inkrot-zar
@inkrot-zar 4 жыл бұрын
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.
@Wivern11
@Wivern11 5 жыл бұрын
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 :(((((
@alexweissnicht9545
@alexweissnicht9545 6 жыл бұрын
I would be interested in a tutorial series about Symfony4+GraphQl. If you could do this, it would be very cool :-)
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
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-DCS
@ICSVortex-DCS 4 жыл бұрын
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.
@OverSeasMedia
@OverSeasMedia 4 жыл бұрын
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)
@lilgab5339
@lilgab5339 2 жыл бұрын
@@OverSeasMedia is this problem already fixed?
@iamluckyduck
@iamluckyduck 3 жыл бұрын
Can you share your PhpStorm theme? :D
@helmis1918
@helmis1918 4 жыл бұрын
Thank you alot for this tutorial, what's about validation ?
@almokhtar6656
@almokhtar6656 6 жыл бұрын
*dude please more videos sf4+vue.js
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
Alright I'll see if I can find some ideas to make videos about, thanks for the suggestion Mokhtar :)
@peterfrom80s
@peterfrom80s 3 жыл бұрын
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.
@LukaszFeller
@LukaszFeller 4 жыл бұрын
@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?
@OverSeasMedia
@OverSeasMedia 4 жыл бұрын
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
@LukaszFeller
@LukaszFeller 4 жыл бұрын
@@OverSeasMedia yes, but then you will loose all the events attached eventually to the form elements.
@ICSVortex-DCS
@ICSVortex-DCS 5 жыл бұрын
I agree, u are not a trash! Would love to see more videos
@OverSeasMedia
@OverSeasMedia 5 жыл бұрын
I appreciate that mate, I really do . Thank you :)
@malekmessaadi5976
@malekmessaadi5976 6 жыл бұрын
thnx man, une serie sur Symfony 4 REST ça sera cool
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
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
@germdz
@germdz 2 жыл бұрын
Excelent!!
@haroldfinch1900
@haroldfinch1900 3 жыл бұрын
the actual content is good, but you are typing to fast and this many corrections are hard to watch.
Symfony and Vue Tutorial: Infinite Scroll
26:06
OverSeas Media
Рет қаралды 4,8 М.
Symfony & Vue: Installing and Setting up (Updated)
10:30
OverSeas Media
Рет қаралды 16 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Symfony Forms Tutorial
16:57
Gary Clarke
Рет қаралды 26 М.
Deep dive into Symfony 4 internals [eng] / Tobias Nyholm
40:14
Boosting Web Engagement with Symfony UX - Mathéo Daninos
35:50
PHP UK Conference
Рет қаралды 1,4 М.
Vue Tutorial: Using Vuex with TypeScript
27:53
OverSeas Media
Рет қаралды 27 М.
How to build your own VUE PLUGINS
8:23
LearnVue
Рет қаралды 23 М.
Symfony 4 Beginners: Dynamically modify a form (AJAX)
28:54
OverSeas Media
Рет қаралды 37 М.
The TRUTH About Golang Backend Frameworks
6:31
Melkey
Рет қаралды 135 М.
Publish a Vue Component to NPM // Vite and Vue 3
5:45
LearnVue
Рет қаралды 29 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН