title: In template How to print a link from a route name
body: <p>I would like display a link using a route name (<strong>home</strong>) into my template.
  How can I do with Slim Framework
  Thanks</p>
  
  <p>My route</p>
  
  <pre><code>&lt;?php
  // index : home
  $app-&gt;get('/home', function () use ($app){
     $app-&gt;render('home.php');
  })-&gt;name('home');
  </code></pre>
  
  <p>My template</p>
  
  <pre><code>&lt;div&gt;
    &lt;a href="&lt;?php echo $this-&gt;tr("home"); // This doesn't work ?&gt;"&gt;my home link&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>or with <strong>urlFor()</strong></p>
  
  <pre><code>&lt;div&gt;
    &lt;a href="&lt;?php echo $this-&gt;urlFor("home"); // This doesn't work ?&gt;"&gt;my home link&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I got this message</p>
  
  <pre><code>=&gt; Call to undefined method Slim\View::urlFor()
  </code></pre>