EllisLab text mark
Advanced Search
     
Controller without functions
Posted: 13 October 2009 09:51 AM   [ Ignore ]
Joined: 2009-09-24
28 posts

Hello,
How can i build a controller without functions?

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

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

 
Posted: 13 October 2009 10:25 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-24
717 posts

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

 Signature 

The art of managing is to explain tomorrow why yesterdays solution doesn’t work today.
livecodes.eu

 
Posted: 13 October 2009 01:24 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2009-09-24
28 posts

Thank you smile It worked.