salmane salmane - 1 year ago 168
PHP Question

codeigniter pagination url with get parameters

I am having trouble setting up pagination on codeigniter when I pass parameters in the URL

if my url is like this :


what should be my
for pagination to work?

if i set the base url to
the resulting url is

which means

thank you

Answer Source

The solution is that CodeIgniter does not function like that. what I need is a method ( in the controller ) for each one of the options in "type" so one option would be a method called :groups , another called entries etc etc each method refers to a different model class or method as needed.

I am trying to better understand OOP and CI ...a bit of adjusting to do ... feel free to comment and correct me if i am wrong. thank you

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download