_getDataObj()->addFilter($filter); $this->_getList()->addUrlVariables(array_keys($filter)); $item = $this->_getListItem(); $item['templatePath'] = $this->_getTemplatePath(); Qs_Smarty_File::setTemplate('ViewController/list.tpl'); $this->_displayJson(Qs_Smarty_File::render(array( 'item' => new Qs_Doc_Item($item), 'view' => $this->_doc->getView() ))); } protected function _addFilterItem() { if ($this->_hasFilter) { $form = $this->_getFilterForm(); $this->_addFormItem($form); } return $this; } }