Welcome Guest, Not a member yet? Register   Sign In
Avoid unnecessary parameter in URL
#1

[eluser]Volkscom[/eluser]
In our site we have a function 'reg_new' in a controller 'registeration' without any parameter, but when we type anything after the url ie, www.ABCD.index.php/registeration/reg_new/bank.html, it show the basic registration page. But we need to show the home page/404 page instead of registration view page.
How can we do that?.
#2

[eluser]WanWizard[/eluser]
Use a route to capture the URL when it has too many parameters, or check in your controller and call show_404().
#3

[eluser]Volkscom[/eluser]
There is any function used to route the url in CodeIgniter?.




Theme © iAndrew 2016 - Forum software by © MyBB