function UserList($info) { $this->createList($info); $this->setTemplate($this->_dir, 'main.tpl.php'); $pagerView = new DefaultPagerView(); $info['list_pager_html'] = $pagerView->show($info['list_pager'], $info['list_controller'], $info['list_action']); $this->set($info); }
public function AjaxArticleList($data) { $response = Project::getAjaxResponse(); $this->setTemplate($this->_dir, 'article_list.tpl.php'); $response->clearBlock('edit_block'); $response->hide('edit_block'); $pagerView = new DefaultPagerView(); $data['list_pager_html'] = $pagerView->show($data['list_pager'], $data['controller'], $data['list_action']); $this->set($data); $response->block('list_block', true, $this->parse()); }