function index() { $this->load->helper('date'); $Model = new mPage(); $Model->list_all(FALSE); data('TableData', $Model); $this->display('pages/list'); }
<h3>Other Pages</h3> <?php $Other = new mPage(); $All = $Other->list_all()->get(); ?> <ul> <?php foreach ($All as $OtherPage) { ?> <?php if (isset($Page) && $OtherPage->id() == $Page->id()) { continue; } ?> <li><a href="/<?php echo $OtherPage->url; ?> /<?php echo $OtherPage->id(); ?> "><?php echo $OtherPage->title; ?> </a></li> <?php } ?> </ul>