title: Pagination without a table
body: <p>is it possible to work in pagination if there are no tables or do I have to change my output style entirely. </p>
  
  <pre><code>  &lt;div class="row"&gt;
  
  
                &lt;?php if ($company != null): ?&gt;
  
                  &lt;?php foreach ($company as $row): ?&gt; 
  
                    &lt;div class="col-lg-4 col-md-6 col-sm-6 col-xs-12"&gt;
                    &lt;div class="job-grid"&gt;
                      &lt;div class="job-title-sec"&gt;
                        &lt;div class="thumb"&gt;&lt;a href="#"&gt;&lt;?php echo $row['logo']; ?&gt;&lt;/a&gt;&lt;/div&gt;
                        &lt;div class="c-logo"&gt; &lt;img src="http://placehold.it/235x115" alt="" /&gt; &lt;/div&gt;
                        &lt;div&gt;&lt;h3&gt;&lt;strong&gt;&lt;?php echo $row['employerName']; ?&gt;&lt;/strong&gt;&lt;/h3&gt;&lt;/div&gt;
                        &lt;div&gt;&lt;h3&gt;&lt;strong&gt;SECTOR: &lt;/strong&gt;&lt;?php echo $row['sectorName']; ?&gt;&lt;/h3&gt;&lt;/div&gt;  
                        &lt;div class="job-lctn"&gt;&lt;i class="fa fa-map-marker"&gt;&lt;/i&gt;&lt;?php echo $row['stateName']; ?&gt;&lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class=""&gt;&lt;a href="&lt;?php echo $row['website']; ?&gt;"&gt;&lt;i class="fa fa-external-link"&gt;&lt;/i&gt;Website&lt;/a&gt;&lt;/div&gt;
                      &lt;div&gt;&lt;a href="&lt;?php echo $row['website']; ?&gt;" class="text"&gt;&lt;i class="fa fa-external-link"&gt;&lt;/i&gt;About&lt;/a&gt;&lt;/div&gt;
                    &lt;/div&gt;&lt;!-- JOB Grid --&gt;
                  &lt;/div&gt;
                &lt;?php endforeach; ?&gt;
  
                &lt;/ul&gt;
              &lt;?php else: ?&gt;
                 &lt;?php if($this-&gt;session-&gt;flashdata('none') != null) {
                              echo '&lt;div class="alert alert-danger"&gt;';
                              echo $this-&gt;session-&gt;flashdata('none');
                              echo '&lt;/div&gt;';
                              } ?&gt;
  
  &lt;?php endif; ?&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>There are a large number of results for the foreach and I want to split it using pagination. Thanks </p>