Joomla 3.xのフィルターとページネーションを使用してビューを作成したいのですが、何をどこに含める必要があるのかわかりません。
とりあえず、モデルを拡張JModelListし、getListQuery()メソッドを使用してデータをフェッチし始めました。
<?php
defined('_JEXEC') or die;
class smartModelProducts extends JModelList{    
    protected function getListQuery(){
        // Initialize variables.
        $db    = JFactory::getDbo();
        $query = $db->getQuery(true);
        // Create the base select statement.
        $query->select('*')
        ->from($db->quoteName('#__smart_products'));
        return $query;
    }
}
私のview.html.phpはこのようになります:
<?php
defined('_JEXEC') or die;
class smartViewProducts extends JViewLegacy{
    function display($tpl=null){
        $app=JFactory::getApplication();
        $jinput = $app->input;
        $option = $jinput->get('option', null, null);
        $user=JFactory::getUser();
        // Get data from the model
        $this->state = $this->get('State');
        $this->items = $this->get('Items');
        $this->pagination = $this->get('Pagination');
        parent::display($tpl);      
    }
}
モデルとビューに何を追加する必要がありますか?フィルターとページネーションの両方が機能するようにdefault.phpに含める必要があるのは何ですか?