[eluser]Anonymous[/eluser]
Hi,
I'm new to codeigniter and just getting a grip on it.
I'm stuck with the following problem:
I have a large products function that wil check if a company/category/both etc is given in the uri.
Like this:
Code:
function producten()
{
if ($this->uri->total_segments() == 3)
//Only a company or a category is given
{
if ($companyid = $this->company_model->getCompanyIdByName($segment3))
//only company is given
{ code here
}
}
//more if statements here
How to use pagination with this setup ? When the pagination class adds an /2 to the uri, my IF statements won't run.