Welcome Guest, Not a member yet? Register   Sign In
Pagination with variable uri
#1

[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.


Messages In This Thread
Pagination with variable uri - by El Forum - 10-21-2009, 02:51 PM
Pagination with variable uri - by El Forum - 10-21-2009, 04:21 PM
Pagination with variable uri - by El Forum - 10-22-2009, 01:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB