db = $db; } static function addPaginator($data,$ctl,Zend_Controller_Request_Abstract $request) { $page = $request->getParam('page'); $paginator = Zend_Paginator::factory($data); $paginator->setCurrentPageNumber($page); $paginator->setItemCountPerPage(12); $paginator->setView($ctl); Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); $ctl->paginator = $paginator; } static function Msg($type,$content,$url=''){ $html = '
"; var_dump($data); echo ""; if($exit) { exit(); } } static function Post(Zend_Controller_Action $ctl,$msg){ if(empty($msg)) { return false; } if(!array($msg)) { $msg = array('content'=>$msg); } $helper = new Zend_Controller_Action_HelperBroker($ctl); $helper->viewRenderer->setNoRender(); echo $ctl->view->partial('post-message.phtml', $msg); return true; } }