[eluser]juan1904[/eluser]
Hi,
I'm working on a forum for my webpage which got a pagination function, and it works perfectly fine when I'm browsing the first page of the forum, but when I click my pagination to view the second page I get a "404 Page Not Found"-error.
Here's some code from my controller:
Code:
function index($offset = 0)
{
$this->load->library('pagination');
// Some code for my pagination
$data['pagination'] = $this->pagination->create_links();
// Get all threads from database.
$data['threads'] = $this->db->get('forum_threads', 15, $offset)->result_array();
// Loading the view.
$data['content'] = 'forum/threads';
$this->load->vars($data);
}
The URI seem to not like that I give my index-function a parameter.
I've got a .htaccess file which removes index.php from my URI.