title: Attempt to Read Property on String Error Codeigniter
body: <p>I am trying to display data through a query on Codeigniter, but return an error
  &quot;ATTEMPT TO READ PROPERTY &quot;JENIS_PRODUK&quot; ON STRING&quot;</p>
  <p>Here's my code on controller :</p>
  <pre><code>public function minimalist($id = 'minimalist')
  {
      $data[&quot;minimalis&quot;] = $this-&gt;welcome_model-&gt;getMinimalis($id);
      $this-&gt;load-&gt;view('frontend/minimalis.php', $data);
  }
  </code></pre>
  <p>My code on Model :</p>
  <pre><code>public function getMinimalis($id)
  {
      return $this-&gt;db-&gt;get_where($this-&gt;_table, [&quot;jenis_produk&quot; =&gt; $id])-&gt;row();
  }
  </code></pre>
  <p>On view I added <code>foreach</code> to display those data</p>
  <p>Can you tell me what's wrong?</p>