Welcome Guest, Not a member yet? Register   Sign In
Problems with custom controllers
#2

[eluser]InsiteFX[/eluser]
Hi,

You can name anythibg you want in code but the filename has to be MY_Controller.
When you do this the your Constructor would be the name you used like below.

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

Enjoy
InsiteFX


Messages In This Thread
Problems with custom controllers - by El Forum - 09-06-2009, 08:10 AM
Problems with custom controllers - by El Forum - 09-06-2009, 08:36 AM
Problems with custom controllers - by El Forum - 09-06-2009, 08:43 AM
Problems with custom controllers - by El Forum - 09-06-2009, 06:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB