[eluser]Drayen[/eluser]
Hey guys, kind of a dumb question here.
Three types of fruit:
Orange,Cherry,Apple
mysite.com/cherry/5
That's how the uri segments would set up, so everything works fine
but how would I program the controller to display ALL types of fruit?
mysite.com/all/5
would not return any results, so is there a way to do an if statement where if the uri segment equals something specific it does something, or is there an easy way to automate this? Obviously the way I have it now, it uses the uri segment variable to access the database, but if there's no variable there it will break the pagination.
Thanks for any help, sorry If I worded this poorly.