Welcome Guest, Not a member yet? Register   Sign In
Handling url's
#1

[eluser]jacobson[/eluser]
Hello I have a problem. I want to create a controller which will load the apropriate view (take from tha database) of the site like localhost/index.php/games/value1-value2 (the values from the database depends of the value1 and value2)

I want this "value1-value2" with the "-" between them.
Do i have to create controller games with the index function which will take uri segment of this value1-value2. then explode it by "-" after that i'll get 2 variables and value1, value2 assigned to them. And at the end send those values to the model and take the informations from the database. Will it work properly? mabe there is some other way - the better one, more efficient.

Thanks for replying


Messages In This Thread
Handling url's - by El Forum - 04-26-2011, 07:16 AM
Handling url's - by El Forum - 04-26-2011, 01:27 PM
Handling url's - by El Forum - 04-26-2011, 01:59 PM
Handling url's - by El Forum - 04-27-2011, 03:16 AM
Handling url's - by El Forum - 04-27-2011, 04:24 AM
Handling url's - by El Forum - 04-27-2011, 06:36 AM
Handling url's - by El Forum - 04-27-2011, 06:44 AM
Handling url's - by El Forum - 04-27-2011, 06:46 AM
Handling url's - by El Forum - 04-27-2011, 02:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB