public function listAction() { $Cars = new Cars(); $page = $this->request->getParam('page', 1); $limit = 10; $from = ($page - 1) * $limit; $this->view->pagerConfig = array('url' => Url::getUrl('cars', 'list', array('page' => 'key_page')), 'count' => $Cars->countData(), 'pack' => $limit, 'page' => $page); $this->view->data = $Cars->getSamochodyLimit($from, $limit); $this->view->display('pokazauta'); }