07.
Adding Form Field Help Text
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
8 Comments
https://symfony.com/blog/ne...
article should be updated :)
This tutorial is based on Symfony3 so the "help" block doesn't exist but a note to aware users about that feature may be useful :)
Cheers!
i feel so dumb ☹️
haha, not at all, you highlighted an useful feature :)
Sometime you write 'label' and sometime label without the quotes (in _form.html.twig), which way is best practice?
Hey Mike P.!
Nice catch, it works the same in both ways, but I have found at the Symfony documentation that they uses single quotes
You can take a look here: https://symfony.com/doc/cur...
Cheers!
I in the template what does in mean {{- xxxx -}} what is the - ? Thanks
Hey eCosinus,
This is a "whitespace control", i.e. to remove some extra whitespace before and after {{- xxxx -}}. Check more information about it with some nice examples in the Twig docs: http://twig.sensiolabs.org/...
Cheers!
"Houston: no signs of life"
Start the conversation!