</div>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">If you use an object, the class variables will be turned
into array elements.</p>
</div>
<p>Let&#8217;s try it with your controller file. Open it add this code:</p>
<div class="highlight-ci"><div class="highlight"><pre><span></span><span class="o">&lt;?</span><span class="nx">php</span>
<span class="k">class</span> <span class="nc">Blog</span> <span class="k">extends</span> <span class="nx">CI_Controller</