title: Slim Framework 3. How to set $baseURL for all views to use?
body: <p>I could get and set $baseUrl like this in every route,</p>
  
  <pre><code>&lt;?php
  $app-&gt;get('/sign-in', function ($request, $response, $args) {
      $uri = $request-&gt;getUri();
      $baseUrl = $uri-&gt;getBaseUrl();
  
      $this-&gt;renderer-&gt;render($response, 'sign-in.phtml', $args);
  });
  </code></pre>
  
  <p>But I have to set it in every route for all views. </p>
  
  <p>Is there a way where I can set $baseUrl in a place and use it in every routes/views ?</p>