[eluser]davidbehler[/eluser]
- Create a file in application/helpers, e.g. pagination_helper.php
- In that file you put your function:
Code:
function do_pagination()
{
$ci = & get_instance();
$ci->load->helper('file');
....
return $output;
}
(I had to shorten the function as I was running out of characters
)
- In your controller load the helper and use the function
Code:
$this->load->helper('pagination');
echo do_pagination();
Obviously I don't know what arguments the function has but I think you can fill in the blanks and work with this.