Pagination library from Codeigniter but modified to use as 3nd party library for Kohana and working fine