public function viewAction() { $tbl_album = new Donga_Model_Doc(); $this->view->items = $tbl_album->getListItemDtl($this->_arrParam, array('task' => 'list-item')); $totalItem = $tbl_album->countItem($this->_arrParam, array('task' => 'count-item-dtl')); $paginator = new Zendda_Paginator(); $this->view->panigator = $paginator->createPaginator($totalItem, $this->_paginator); }
public function indexAction() { $this->view->Title = 'Chuyên mục :: Quản lý tài nguyên :: Danh sách'; $this->view->headTitle($this->view->Title, true); $tblItem = new Donga_Model_Doc(); $this->view->items = $tblItem->getlistItem($this->_arrParams, array('task' => 'list-item')); $totalItem = $tblItem->countItem($this->_arrParams, array('task' => 'count-item')); $paginator = new Zendda_Paginator(); $this->view->panigator = $paginator->createPaginator($totalItem, $this->_paginator); }