public function indexAction() { if (!Zend_Auth::getInstance()->getIdentity()) { $this->_redirect('index'); } $this->view->title = "currency"; $this->view->headTitle($this->view->title, 'PREPEND'); $currency = new Application_Model_DbTable_Rate(); $currencies = $currency->fetchDataRate(); $page = $this->_request->getParam('page'); //Note: getParam() Retrieves More than User Parameters //In order to do some of its work, getParam() actually retrieves from several sources. //use the setParam() and getParam() methods to set or retrieve user parameters. if (empty($page)) { $page = 1; } $paginator = $currency->getOnePageOfCurrency($page); $this->view->paginator = $paginator; }