Pagination suggestions? |
[eluser]gRoberts[/eluser]
hi all, I've only been using CI for a little while, and I am currently rebuilding a site using it. I've come across a problem where I can't use parameters on the index unless I call the index directly. Basically I have this piece of code which works great on a url like http://example.com/controller/method/sort:asc/page:1 Code: $segs = $this->uri->segment_array(); Any suggestions without having the index in the url? Cheers
[eluser]gRoberts[/eluser]
I think I have found a solution already, but I need a way to be able to stop the parent::controller() from trying to load the non-existant method. This is what I have in place. Code: function Categories() { But I assume parent::Controller() is throwing the 404 error before it can reach the rest of the code. Any idea's? Thanks
[eluser]gRoberts[/eluser]
I should of RTFM. Just for reference I used the _remap function, which allowed me to check whether the function being requested was actually a parameter. Code: function _remap($method) { Great heh! |
Welcome Guest, Not a member yet? Register Sign In |