Welcome Guest, Not a member yet? Register   Sign In
multiple MY_Controller?
#2

[eluser]tomcode[/eluser]
Yes and No, No, You can have only one file MY_Controller.php.

But, You can define several classes inside this file :

Code:
// For all common methods
class MY_Controller extends Controller{
    
}
// Some special Member stuff
class Member_controller extends MY_Controller{
    
}
// ..
class Admin_controller extends Member_controller{
    
}
// A completely different set of stuff
class Special_controller extends Controller{
    
}
// And instead of using helper files ...
function common_helper_function()
{
}


Messages In This Thread
multiple MY_Controller? - by El Forum - 03-12-2010, 10:00 PM
multiple MY_Controller? - by El Forum - 03-12-2010, 10:50 PM
multiple MY_Controller? - by El Forum - 03-13-2010, 09:19 AM
multiple MY_Controller? - by El Forum - 03-13-2010, 10:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB