public function listAction() { $model = new Cars(); $page = $this->request->getParam('page', 1); $limit = 3; $from = ($page - 1) * $limit; $this->view->pagerConfig = array('url' => Url::getUrl('car', 'list', array('page' => 'key_page')), 'count' => $model->carCount(), 'pack' => $limit, 'page' => $page); $this->view->data = $model->getCarsWithLimit($from, $limit); $this->view->display('list'); }