Welcome Guest, Not a member yet? Register   Sign In
Controller without functions
#1

[eluser]Lacsap[/eluser]
Hello,
How can i build a controller without functions?

http://localhost/mysite/Test/12345-name

Code:
class Test extends Controller {
    function Test () {
        parent::Controller();
    }


    function index() {
        //...
        //here i want to use 12345-name    
    }
}

How can i solve this? CI is tryin to load 12345-name function.

Thanks
#2

[eluser]rogierb[/eluser]
Check the controller section in the user guide for the function _remap(). I think that is what you are looking for.
#3

[eluser]Lacsap[/eluser]
Thank you Smile It worked.




Theme © iAndrew 2016 - Forum software by © MyBB