CodeIgniter Forums
Controller without functions - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Controller without functions (/showthread.php?tid=23503)



Controller without functions - El Forum - 10-13-2009

[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


Controller without functions - El Forum - 10-13-2009

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


Controller without functions - El Forum - 10-13-2009

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