Ковыряйте рабочий пример:
$this->load->library ('pagination');
$pg_cfg = array (
'base_url' => base_url () . 'gallery/show_album/' . $id . '/',
'total_rows' => count ($images),
'per_page' => $this->Gallery_model->get_images_number_per_page (),
'uri_segment' => 4,
'num_links' => 10,
'full_tag_open' => '<p class="paginator"> Страницы: ',
'full_tag_close' => '</p>',
'first_link' => 'первая',
'first_tag_open' => '<span>',
'first_tag_close' => '</span>',
'last_link' => 'последняя',
'last_tag_open' => '<span>',
'last_tag_close' => '</span>',
'prev_tag_open' => '<span>',
'prev_tag_close' => '</span>',
'next_tag_open' => '<span>',
'next_tag_close' => '</span>',
'num_tag_open' => '<span>',
'num_tag_close' => '</span>',
'cur_tag_open' => '<span class="current">',
'cur_tag_close' => '</span>',
);
$this->pagination->initialize ($pg_cfg);
$pg_links = $this->pagination->create_links ();