Thanks for your kind feedback! Top secret info for you (do not tell anyone!): we're going to start working on the 2nd episode of Symfony 4 series, so it'll be releasing soon. Unfortunately no interaction with DB yet, but we're close to it ;)
Was really liking Twig up until that part where the syntax for an associative array is the same as with JSON. I hope they stuck with traditional PHP syntax on that one. The Python-like for loop is awesome though, so I guess I can't complain :D
Ha! That was weird for me at first too, to be honest - especially because { is already used to *start* Twig :). But, at least it's consistent with JSON/JavaScript... and not something totally invented ;).
Glad you like the loop - Twig is just full of goodies - more and more of them when you start digging.
I got an error: Looks like you try to load a template outside configured directories (../../templates/base.html.twig) in article/homepage.html.twig at line 1.
My fix: homepage.html.twig (downloaded from here): Old: 1st line: {% extends '../../templates/base.html.twig' %} New 1st line: {% extends 'base.html.twig' %}
6 Comments
can't wait for database part, really nice job on those videos! big thanks
Hey Yacine!
Thanks for your kind feedback! Top secret info for you (do not tell anyone!): we're going to start working on the 2nd episode of Symfony 4 series, so it'll be releasing soon. Unfortunately no interaction with DB yet, but we're close to it ;)
Cheers!
Was really liking Twig up until that part where the syntax for an associative array is the same as with JSON. I hope they stuck with traditional PHP syntax on that one. The Python-like for loop is awesome though, so I guess I can't complain :D
Hey agin John alcher!
Ha! That was weird for me at first too, to be honest - especially because { is already used to *start* Twig :). But, at least it's consistent with JSON/JavaScript... and not something totally invented ;).
Glad you like the loop - Twig is just full of goodies - more and more of them when you start digging.
Cheers!
I got an error:
Looks like you try to load a template outside configured directories (../../templates/base.html.twig) in article/homepage.html.twig at line 1.
My fix:
homepage.html.twig (downloaded from here):
Old: 1st line: {% extends '../../templates/base.html.twig' %}
New 1st line: {% extends 'base.html.twig' %}
Thanks for this great series!
Hey Mike P.
I believe your paths got modified when you moved the templates from the "tutorial" directory. Oh, and thanks for the compliment :)
Cheers!
"Houston: no signs of life"
Start the conversation!