title: Codeigniter 4 doesnt declare models when put inside constructor
body: <p>I have a problem when i want to declare models only once, i make it like this</p>
  <pre><code>  &lt;?php
  
  namespace App\Controllers;
  
  use App\Models\KomikModel;
  
  class Komik extends BaseController
  {
      protected $komikModel;
      public function __construct()
      {
          $this-&gt;$komikModel = new KomikModel();
      }
  
      public function index()
      {
          $komik = $this-&gt;komikModel-&gt;findAll();
          $data = [
              'title' =&gt; 'Daftar Komik',
              'komik' =&gt; $komik,
          ];
  
          return view('komik/index', $data);
      }
  
  }
  </code></pre>
  <p>but its get error saying undefined variable <strong>$komikModel</strong> on this line 12 which is this</p>
  <pre><code>public function __construct()
  {
      $this-&gt;$komikModel = new KomikModel();
  }
  </code></pre>
  <p>how do i fix this ? or maybe you can suggest with better practice than this one.</p>