[6/9] - Beginners Symfony 4 Tutorial - Symfony 4 and Bootstrap 4

Опубликовано: 13 Февраль 2021
на канале: Code Review Videos
3,950
27

Towards the end of the previous video we had our basic Symfony 4 contact form displaying in our browser. Even though we have used Bootstrap 4, our form fields do not use any of the Bootstrap form field CSS classes, and so the actual output of our form is really ugly. Fortunately, Symfony yet again has us covered here.

As ever with programming, there are a couple of ways we can enable Bootstrap 4 form theming in our Symfony projects. We can either:

Enable a Bootstrap 4 form theme for a particular template
Enable Bootstrap 4 form theming for our entire project

This was a cool new feature added in Symfony 3.4. As a side note, it's always worth keeping a check on the Symfony blog as new and cool stuff is added to Symfony all the time, and aside from following the GitHub issues register, this is often the first place you will hear about new features.

Ok, I'm going to enable Bootstrap 4 form theming for my entire project. I've never had a situation where I only want form theming for a single form, so I'm leaning towards my personal experience here. Change up as you see fit.

Full video notes: https://codereviewvideos.com/course/s...


Смотрите видео [6/9] - Beginners Symfony 4 Tutorial - Symfony 4 and Bootstrap 4 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code Review Videos 13 Февраль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,950 раз и оно понравилось 27 людям.