derlink" href="#creating-loops" title="Permalink to this headline">¶</a></h2>
<p>The data array you pass to your view files is not limited to simple
variables. You can pass multi dimensional arrays, which can be looped to
generate multiple rows. For example, if you pull data from your database
it will typically be in the form of a multi-dimensional array.</p>
<p>Here&#8217;s a simple example. Add this to your controller:</p>
<div class="highlight-ci"><div class="highlight"><pre><span></span><span class="o"