// set pagination informationAnd then in the view:
\Pagination::instance()->uri_segment = 4;
\Pagination::instance()->per_page = \Config::get('application.pagination', 20);
\Pagination::instance()->total_items = Model\Person::count();
\Pagination::instance()->pagination_url = \Uri::create('mymodule/people/all');
// content for this action
\Theme::instance()->set_partial('content', 'people/index')
->set('people', Model\Person::find()
->order_by('surname', 'ASC')
->rows_offset(\Pagination::instance()->offset)
->rows_limit(\Pagination::instance()->per_page)
->get());
echo Pagination::instance()->render();
It looks like you're new here. If you want to get involved, click one of these buttons!