Joomla Component分页不起作用

时间:2016-05-03 07:48:56

标签: php model-view-controller joomla joomla3.0 joomla-extensions

我正在构建一个Joomla组件,并试图为我的列表创建一个分页,但没有显示任何内容 这是default.php的代码

<tfoot>
            <tr>
                <td colspan="5">
                    <?php echo $this->pagination->getListFooter(); ?>
                </td>
            </tr>
        </tfoot>

和我的view.html

protected $patients;
protected $pagination;
public $filterForm;
public $activeFilters;
 public function display($tpl = null)
{

    $this->patients = $this->get('Items');
    $this->pagination   = $this->get('Pagination');
    $this->filterForm    = $this->get('FilterForm');
    $this->activeFilters = $this->get('ActiveFilters');
    labHelper::addSubmenu('patients');
    $this->addToolBar();
    $this->sidebar = JHtmlSidebar::render();

    return parent::display($tpl);
}

有什么问题!?

0 个答案:

没有答案