Welcome Guest, Not a member yet? Register   Sign In
Use My_Model or a separate model class from MY_Controller?
#5

[eluser]wiredesignz[/eluser]
If you are using get_instance() in your code then the CI super object is available and you won't need to use a hook to access your database, it is just pointless over complication. Place your config loading code into your MY_Controller class.

Using a model will make your code more portable.


Messages In This Thread
Use My_Model or a separate model class from MY_Controller? - by El Forum - 02-07-2011, 02:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB