Welcome Guest, Not a member yet? Register   Sign In
URI Segment in index
#1

[eluser]ibnclaudius[/eluser]
I can access the index function inside the default controller by two ways:

url/defaultcontroller/index
url/defaultcontroller

I can send data to the index function using uri->segment(), like:

url/defaultcontroller/index/data

But I want to access send it like:

url/defaultcontroller/data

But this try to access data as function...

What you guys recommend?
#2

[eluser]Aken[/eluser]
Routes.
#3

[eluser]ibnclaudius[/eluser]
The problem is that I'm already using $route['(:any)'] = $route['default_controller'] . '/$1';
#4

[eluser]Aken[/eluser]
So use another, more specific route. Search around, it has been discussed.




Theme © iAndrew 2016 - Forum software by © MyBB