Welcome Guest, Not a member yet? Register   Sign In
Pagination.. using multiple segment variables
#1

[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.


Messages In This Thread
Pagination.. using multiple segment variables - by El Forum - 10-12-2008, 02:28 AM
Pagination.. using multiple segment variables - by El Forum - 10-12-2008, 02:50 AM
Pagination.. using multiple segment variables - by El Forum - 10-12-2008, 11:46 AM
Pagination.. using multiple segment variables - by El Forum - 10-12-2008, 11:48 AM
Pagination.. using multiple segment variables - by El Forum - 10-12-2008, 11:58 AM
Pagination.. using multiple segment variables - by El Forum - 10-12-2008, 12:08 PM
Pagination.. using multiple segment variables - by El Forum - 10-12-2008, 12:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB