Routes[SOLVED] |
[eluser]Ivar89[/eluser]
Hi, I need my url to change and well I did it before and worked fine but I can't seem to do it anymore rhis is my URL http://ikwoon.ivi/main/view/Zuid-Holland Main = controller view = function Zuid-Holland = var. I need to get rid of the Main/view soit will look like this http://ikwoon.ivi/Zuid-Holland any help??
[eluser]Ivar89[/eluser]
This is the controllerif its needed): Code: function view($province)
[eluser]Simian Studios[/eluser]
Hi Ivar Without knowing anything else about your app it's hard to decide the best course of action, but unless you have loads of other actions you want access to, a solution would be to just use config/routes.php to do the work for you. e.g: Code: // define all other actions first
[eluser]Ivar89[/eluser]
Yhea I knew i wanted to do it with route but it didn't work but as you can see I figured it out thanks anyway
[eluser]Simian Studios[/eluser]
Heh, you solved it while I was on the phone mid-way through writing my post.. glad you sorted it anyways
|
Welcome Guest, Not a member yet? Register Sign In |