9 - Symfony 4 Beginners: Forms

  Рет қаралды 25,014

OverSeas Media

OverSeas Media

Күн бұрын

How to use Forms In Symfony 4, This video is part of The Learn Symfony 4 Beginners series.

Пікірлер: 31
@valera2010_cool
@valera2010_cool 6 жыл бұрын
Thanks a lot for your videos! A lot easier to understand, than symfony docs
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
You're welcome mate :)
@codecake9086
@codecake9086 3 жыл бұрын
Best tutorial on symfony. Thank you.
@Aztek1994
@Aztek1994 4 жыл бұрын
Bro that was super well done, very clear quick and concise perfect thanks mate !
@cfvelez9
@cfvelez9 3 жыл бұрын
How do you set up the form type and controller to handle datetime types ("2021-06-26 12:15:00")?
@AndreasGerum
@AndreasGerum 4 жыл бұрын
Can you go a step further and explain how Collections work in detail - For example Creating a Form adding 'steps', which is a CollectionType and handling it in Twig via form_theme like _self and so on?
@rasitiri
@rasitiri 5 жыл бұрын
Hello. First of all thank you very much for this series. I got a question for you. What is your operating system?
@OverSeasMedia
@OverSeasMedia 5 жыл бұрын
It is Linux ubuntu with flatbulous theme :)
@OverSeasMedia
@OverSeasMedia 5 жыл бұрын
​@Vui Programmer Let me start first the reason with the reason most of developers tend to use linux, First it makes you look smart lol (jk) but the real reason is it's fast, it gives the user incredible control and it's very customizable, and it's the closest thing to a production server, because as you know most people tend to host their websites and web applications on linux servers. I would say linux is pretty easy to use (talking about the basics) you jsut have to get used to it for a while and get the hang of some important commands, i would highly suggest that you try it sometimes in a virtual machine if you don't want to make an entire partition for it. Hopefully that answered you question :)
@saroj_shrestha
@saroj_shrestha 6 жыл бұрын
How to add cancel button? If a user wants to return back without doing anything how we can return back?
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
Hello there mate , What do you mean by return back ? You mean like reset the form and clear all the fields ?
@saroj_shrestha
@saroj_shrestha 6 жыл бұрын
@@OverSeasMedia What if you mistakely click add button which will display form, now you want to return back without doing anything, how you will return back without hitting back button on browser
@saroj_shrestha
@saroj_shrestha 6 жыл бұрын
Did u understand my reply
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
Hey dude I'm sorry i totally forgot to get back to you on this, To be honest mate i never actually had to do that in a symfony app, i know laravel has something like this by default which makes me assume taht symfony has the same thing too, but i guess i'll just have to look it up, i remember once that i did something similar to this but it t was in a SPA and i just used javascript to handle this. I'll see if i can find anything related to this, this is actually a pretty good question.
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
Okay so i've done some really quick research about this and by the llok of it i don't think symfony has anything built in to help achieve this, but it seems like we could use the request to our advantage here, here's what seems like a solution (I HAVE NOT TRIED ANY OF THESE YET SO DO NOT TAKE MY WORD ON IT), in the request headers we have the referer value which means where we got here from and this is usually after performing some action or accessing a route, so i guess we can take that value and put it in a redirect response and return that, which might or might not work, but in you case it's quite different because you want to have that in a button beside the form (if I'm not mistaken) which means we need some way to have that URL directly accessible in on the button, which is not hard but have you considered the case where you access the page directly from the bookmarks for example, after clicking the button you will be taken back to either an empty tab (if you opened a new tab) , or in case you just opened the form URL from another page it will take somewhere else, not sure where maybe it's just going to close the tab and take you back to the page where you originally opened the URL. Let me know what you think about these thoughts and if you can explain the entire flow that you're trying to achieve i might be able to help you more with this :) Cheers bro and sorry for taking like 3 days to respond to this .
@onur5887
@onur5887 4 жыл бұрын
thank you
@Marrk_23
@Marrk_23 6 жыл бұрын
i dont have the post.php file in enitity
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
You can crate it if you want to , or if you're creating a form without an entity let me know so I can provide you with an example
@Marrk_23
@Marrk_23 6 жыл бұрын
@@OverSeasMedia Got it allready from a friend but thank you anyway :)
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
Alright that is great .ate good job, and hey if you ever need further help feel free to send me an email . Cheers mate :)
@Marrk_23
@Marrk_23 6 жыл бұрын
@@OverSeasMedia I will, I see some interesting stuff on your channel so I will definitely come back on some of your vids
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
Oh man thank.you for that :)
@Doiduu14
@Doiduu14 6 жыл бұрын
How i put inline block?
@OverSeasMedia
@OverSeasMedia 6 жыл бұрын
Hello mate . I'm sorry for a late response just sat down to answer questions, if you're till having problems with something let me know man . Cheers and good luck :)
@vitaliisliusar3812
@vitaliisliusar3812 6 жыл бұрын
very good!
@abcdefghi_klmnopqrst__wxyz
@abcdefghi_klmnopqrst__wxyz 5 жыл бұрын
5:20 ....just too much code to create a form class bound to an entity..in django you can do that with less than half the lines that need to be written here in symfony...
@troxy1935
@troxy1935 5 жыл бұрын
Did you forget a "use" statement for another namespace?
@troxy1935
@troxy1935 5 жыл бұрын
Someone know this error? can give help?
@OverSeasMedia
@OverSeasMedia 5 жыл бұрын
What is the exact error you're getting?
10 - Symfony 4 Beginners: Generating a CRUD
15:58
OverSeas Media
Рет қаралды 27 М.
17 - Symfony 4 Beginners: Services
26:30
OverSeas Media
Рет қаралды 12 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Symfony 4 Beginners: Dynamically modify a form (AJAX)
28:54
OverSeas Media
Рет қаралды 37 М.
8 - Symfony 4 Beginners: Doctrine & Database interaction
24:39
OverSeas Media
Рет қаралды 10 М.
7 - Symfony 4 Beginners: Twig
22:22
OverSeas Media
Рет қаралды 10 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 44 МЛН
Learn HTML Forms In 25 Minutes
24:56
Web Dev Simplified
Рет қаралды 1 МЛН
I just tried o3-mini
6:31
ThePrimeTime
Рет қаралды 235 М.
Intro to Windows Forms (WinForms) in .NET 6
1:35:50
IAmTimCorey
Рет қаралды 248 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 299 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 46 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН