Welcome Guest, Not a member yet? Register   Sign In
URI path determined by data value....
#1

[eluser]colorfingers[/eluser]
I've read the information on URI routing ect... and I'm a bit stumped on how I might accomplish this. I would like to take a value, say a user name from MySql and after running it in the controller to bring up a view. The catch is that I would like the URL to reflect the value without displaying the controller...

example: http://mycodeigniter/username vs http://mycodeigniter/user/username...

Does anyone have an idea on how to coax this behavior from CodeIgnitor?

Thanks,

Bob
#2

[eluser]colorfingers[/eluser]
Either I have asked the impossible or a very dumb question.

?;O)
#3

[eluser]Ben Edmunds[/eluser]
This has been covered many many times. Probably been covered a couple times this past week.

Please search the forums. If you can't find it I'll find it for you.
#4

[eluser]colorfingers[/eluser]
Did a search earlier... Didn't find anything relevant searching 'URL'... Sorry but I did try. I will look further.

Bob ?;O)
#5

[eluser]Ben Edmunds[/eluser]
Maybe this will get you started:

http://ellislab.com/forums/viewthread/139775/


Have fun Wink
#6

[eluser]Johan André[/eluser]
Read about routing in the userguide...
#7

[eluser]thePiet[/eluser]
http://ellislab.com/codeigniter/user-gui...uting.html
#8

[eluser]colorfingers[/eluser]
Thanks...




Theme © iAndrew 2016 - Forum software by © MyBB