Welcome Guest, Not a member yet? Register   Sign In
MVC and URLs
#5

[eluser]bastones[/eluser]
[quote author="venksster" date="1226299540"]bastones,

thanks for replying Smile

in other words, the controller is 'mysite'. That is exactly what I would like to avoid. Instead of

http://example.com/mysite/members/U_ID, i would like to be able to use,

http://example.com/members/U_ID, where U_ID = $this->uri->segment(2), but segment(2) is always the function.

So this cannot be done?[/quote]

By default it is as /class/function/value, but if you wish to change this you'll have to see this section of the user guide. But I'm unsure if you can change the first segment as that is associated with the class but check the link incase Smile.


Messages In This Thread
MVC and URLs - by El Forum - 11-09-2008, 03:03 PM
MVC and URLs - by El Forum - 11-09-2008, 05:56 PM
MVC and URLs - by El Forum - 11-09-2008, 06:45 PM
MVC and URLs - by El Forum - 11-09-2008, 07:01 PM
MVC and URLs - by El Forum - 11-09-2008, 07:30 PM
MVC and URLs - by El Forum - 11-09-2008, 07:46 PM
MVC and URLs - by El Forum - 11-09-2008, 09:45 PM
MVC and URLs - by El Forum - 11-10-2008, 01:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB