Welcome Guest, Not a member yet? Register   Sign In
Routes without calling class
#1

[eluser]Unknown[/eluser]
Hi,

I am new to Code Ingniter.

What I know is that we are rounting URL in this way:
example.com/class/function

Is it possible to specify function only in URL?

For example:
example.com => example.com/class/index
example.com/function => example.com/class/function
example.com/function2 => example.com/class/function2

So:
- "class" is our default controller
- we are only writing in URL functions from our default controller

Please help,
thx and best regards,
Snusmumriken




Theme © iAndrew 2016 - Forum software by © MyBB