public function indexAction() { $tbl_album = new Donga_Model_Album(); $this->view->items = $tbl_album->getListItem($this->_arrParam, array('task' => 'list-item')); $totalItem = $tbl_album->countItem($this->_arrParam, array('task' => 'count-item')); $paginator = new Zendda_Paginator(); $this->view->panigator = $paginator->createPaginator($totalItem, $this->_paginator); }
public function multiDeleteAction() { if ($this->_request->isPost()) { $tblItem = new Donga_Model_Album(); $tblItem->deleteItem($this->_arrParams, array('task' => 'admin-multi-delete')); $this->_redirect($this->_mainAction); $this->_helper->viewRenderer->setNoRender(); } }