Hello, I am Nils!
I have started to use Slim / Twig and whilst I'm a noobie, I'm loving it.
However, I need to show data from my database on the page. In traditional PHP obviously I would just use mysqli_query() and then return the results using a while loop, you get the point.
However, since you can't write PHP in Twig (obviously) I don't know how to render data from the database.
Does anybody know the trick? Cheers.
You should know that I am using Slim 2.6 and Twig 1.18. This is because I watched an out of date course, I'll catch up to the latest version sooner or later.