Нашел на *****************
Создаем второй пагинатор в application\modules\Activity\Model\DbTable\notifications.php (помещаем данный код после первого пагинатора):
PHP:
public function getNotificationsPaginator2(User_Model_User $user)
{
$enabledNotificationTypes = array();
foreach( Engine_Api::_()->getDbtable('NotificationTypes', 'activity')->getNotificationTypes() as $type ) {
$enabledNotificationTypes[] = $type->type;
}
$select = $this->select()
->where('user_id = ?', $user->getIdentity())
->where('`type` IN(?)', $enabledNotificationTypes)
->where('`read` = ?', 0)
->order('date DESC')
;
return Zend_Paginator::factory($select);
}
далее идем в application\modules\activity\controllers\notificationscontroller.php, ищем там
PHP:
public function pulldownAction()
{
$page = $this->_getParam('page');
$viewer = Engine_Api::_()->user()->getViewer();
if ($page > 1) { $this->view->notifications = $notifications = Engine_Api::_()->getDbtable('notifications', 'activity')->getNotificationsPaginator($viewer);
}
if( $notifications->getCurrentItemCount() <= 0 || $page > $notifications->getCurrentPageNumber() ) {
$this->_helper->viewRenderer->setNoRender(true);
return;
}
// Force rendering now
$this->_helper->viewRenderer->postDispatch();
$this->_helper->viewRenderer->setNoRender(true);
}
и заменяем на
PHP:
public function pulldownAction()
{
$page = $this->_getParam('page');
$viewer = Engine_Api::_()->user()->getViewer();
if ($page > 1) { $this->view->notifications = $notifications = Engine_Api::_()->getDbtable('notifications', 'activity')->getNotificationsPaginator($viewer);
} else { $this->view->notifications = $notifications = Engine_Api::_()->getDbtable('notifications', 'activity')->getNotificationsPaginator2($viewer); }
// $this->view->notifications = $notifications = Engine_Api::_()->getDbtable('notifications', 'activity')->getNotificationsPaginator($viewer);
$notifications->setCurrentPageNumber($page);
if( $notifications->getCurrentItemCount() <= 0 || $page > $notifications->getCurrentPageNumber() ) {
$this->_helper->viewRenderer->setNoRender(true);
return;
}
// Force rendering now
$this->_helper->viewRenderer->postDispatch();
$this->_helper->viewRenderer->setNoRender(true);
}
и все)) работает 100% - гораздо удобнее, чем стандартный вариант
либо просто распакуйте прикрепленный архив в корень сайта
View attachment Updates..zip