aschelch / cakephp-notification-plugin

CakePHP Notification Plugin provide an notification system
25 stars 9 forks source link

Pagination #3

Closed renatorib closed 8 years ago

renatorib commented 9 years ago

How can I paginate the notifications?

aschelch commented 9 years ago

Hi,

To paginate notifications, you will have to get notification using a regular CakePHP request. You associate the NotificationModel in your controller and use the PaginatorComponent

Something like :

    public $uses = array('Notification.Notification');

And in your action :

    $this->set('notifications', $this->Paginator->paginate('Notification'));