CodeIgniter Forums
Pagination and filtering products - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Pagination and filtering products (/thread-49940.html)

Pagination and filtering products - El Forum - 03-08-2012

Hi! I'm trying to accomplish a pagionation with filters from a dropdownbox.
My question is should I use query strings and use the $_GET array (I personally don't like this approach) or should I use uri segments aka. passing variablse to the method - something like this (i'm routing the index function and everything after 'category' are passed variables) But this way my url will look like which is not nice and my method will have like 6-7 variables which are also becoming url segments. I can also translate the filters to something like /asc/male/2.

Can you tell me a good way to accomplish this? I mean should I pass the filters like varr to my method? I'm using this method to pass my page for the pagination so I guess it's the same thing? Thanks.