title: Can not load site
body: <p>I'm using <code>CakePHP3</code> with <code>TwigView</code>. However, I can not load any page on my application. I get the following error at the <code>src/View/TwigView.php</code> file. What am I doing wrong?</p>
  
  <blockquote>
    <p>Call to a member function loadTemplate() on null</p>
  </blockquote>
  
  <p>The routing configuration:</p>
  
  <pre><code>Router::scope('/', function (RouteBuilder $routes) {
      $routes-&gt;connect(
        '/',
        ['controller' =&gt; 'Man', 'action' =&gt; 'login']
      );
      $routes-&gt;connect(
        '/man/*',
        ['controller' =&gt; 'Man', 'action' =&gt; 'login']
      );
      $routes-&gt;fallbacks(DashedRoute::class);
  });
  </code></pre>
  
  <p>TwigView Setting</p>
  
  <pre><code>// file: src/View/AppView.php
  namespace App\View;
  use WyriHaximus\TwigView\View\TwigView;
  
  class AppView extends TwigView
  {
      public function initialize()
      {
      }
  }
  
  // file Application.php
  class Application extends BaseApplication
  {
      /**
       * {@inheritDoc}
       */
      public function bootstrap()
      {
          $this-&gt;addPlugin('WyriHaximus/TwigView');
          ....
      }
  }
  </code></pre>
  
  <p>Layout file</p>
  
  <pre><code>// file: Template/Layout/default.tpl
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>class AppController extends Controller
  {
      public function initialize()
      {
          parent::initialize();
          $this-&gt;viewBuilder()-&gt;setLayout("default");
      }
  }
  </code></pre>