Accessing other pages with Twig
<p>I've started learning Twig today and wanted to know how I would redirect to another page in my template.</p>

<p>This is my index.php where I also load my homepage.</p>

<pre><code>&lt;?php
require '../vendor/autoload.php';
$loader = new Twig_Loader_Filesystem('../recourses/views');
$twig = new Twig_Environment($loader);
echo $twig-&gt;render('pages/home.twig', array(
    'project_title' =&gt; getProjectTitle()
));
</code></pre>

<p>Now my question is: How could I reach this page with an <code>&lt;a href="...."&gt;&lt;/a&gt;</code> ?
I can't just use <code>&lt;a href ="pages/home.twig"&gt;</code> since it will show the code instead of the page itself.</p>

<p>I've tried searching but couldn't find my sollution.</p>

<p>Hope anyone can explain this to me.</p>