• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.