I recently started using CodeIgniter when I was looking for a very lightweight framework, and it seemed to be the best choice.
I am new to all MVC work, enjoying it, but stuck with something that seems very simple.
I encode CMS and need a way to filter, sort, and paginate results. I'm used to doing this with querystrings, so I would have something like:
articles.php?order=title&sort=desc&filter=articletitle&page=5
I have no idea how to do this in CI, so I just turned on EnableQueryStrings in the config, and it works fine, but I feel that this is probably not the most elegant solution.
I suppose that
index.php/articles/index/order/title/sort/desc/filter/articletitle/page/5
but for me it seems very inflexible, that if, for example, I don’t need to sort, how would I make sure that I am looking at the correct uri segment?
any ideas?