I've got a repo on github for this project: <https://github.com/villimagg/php-mvc-twig>

I'm having huge difficulties finding out how you pass results from a method in an MVC pattern to be displayed in the html using Twig template engine.

This project I got on github is just my simple bare-bones mvc framework which I'm using to learn how things work and I want to include the Twig template engine. So far I have no problems using just php and passing results into the view, and so far I've managed to have Twig display the template with the css and all. But when I need to retrieve some dynamic data from methods f.ex. and display it using Twig, I can't figure out how that is done.

Is there anyone who wants to help me? I guess more newbies like me wonder about similar things as well.
Please download the project on github, or fork it, and share your thoughts with us.

I want to express my gratitude to the opensource community for everything I've learned so far, which is basically everything I know in programming. Thank you a thousand times.

Kind regards, Villi.