9 - Symfony 4 Beginners: Forms

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 31

  • @valera2010_cool
    @valera2010_cool 6 років тому +9

    Thanks a lot for your videos! A lot easier to understand, than symfony docs

  • @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 !

  • @rasitiri
    @rasitiri 5 років тому +1

    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 років тому +1

      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 :)

  • @AndreasGerum
    @AndreasGerum 4 роки тому +1

    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?

  • @cfvelez9
    @cfvelez9 3 роки тому

    How do you set up the form type and controller to handle datetime types ("2021-06-26 12:15:00")?

  • @onur5887
    @onur5887 4 роки тому

    thank you

  • @vitaliisliusar3812
    @vitaliisliusar3812 6 років тому

    very good!

  • @saroj_shrestha
    @saroj_shrestha 5 років тому

    How to add cancel button? If a user wants to return back without doing anything how we can return back?

    • @OverSeasMedia
      @OverSeasMedia  5 років тому +1

      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 5 років тому

      @@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 5 років тому

      Did u understand my reply

    • @OverSeasMedia
      @OverSeasMedia  5 років тому

      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  5 років тому

      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 .

  • @Doiduu14
    @Doiduu14 5 років тому

    How i put inline block?

    • @OverSeasMedia
      @OverSeasMedia  5 років тому

      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 :)

  • @Marrk_23
    @Marrk_23 5 років тому +1

    i dont have the post.php file in enitity

    • @OverSeasMedia
      @OverSeasMedia  5 років тому

      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 5 років тому

      @@OverSeasMedia Got it allready from a friend but thank you anyway :)

    • @OverSeasMedia
      @OverSeasMedia  5 років тому +1

      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 5 років тому

      @@OverSeasMedia I will, I see some interesting stuff on your channel so I will definitely come back on some of your vids

    • @OverSeasMedia
      @OverSeasMedia  5 років тому

      Oh man thank.you for that :)

  • @troxy1935
    @troxy1935 4 роки тому

    Did you forget a "use" statement for another namespace?

    • @troxy1935
      @troxy1935 4 роки тому

      Someone know this error? can give help?

    • @OverSeasMedia
      @OverSeasMedia  4 роки тому

      What is the exact error you're getting?

  • @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...