1
то, что я хочу сделать то, что я Ван показать пользователь этодобавление (Отображение текущего начала числа записей Всего записей) в ZEND Paginator
Showing 1 to 10 of 50 entries
Showing 11 to 20 of 50 entries
Showing 21 to 30 of 50 entries
Showing 31 to 40 of 50 entries
Showing 41 to 50 of 50 entries
я использовал Zend Paginator в моем приложении позволяет сказать
Showing A to B of C entries
Я могу легко найти C, равный
$result = $DB->fetchAll($sql);
$total =count($result);
если мы видим здесь
$page=$this->_getParam('page',1);
//here we can get the requested page#.
//lets hard code this
$paginator->setItemCountPerPage(10);
$per_page =10;
in my view count($this->paginator) give me total number of pages that is if
if total = 101 = $total
than page = 9 = $page
and paginator = 11 = count($this->paginator)
, как я могу добиться этого, но общего среднего рабочего с следующий, предыдущий и так далее ..