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

[eluser]suntrop[/eluser]
HI there.

I am quite new to CI but have learned basic concepts. Now I am developing my first website with CI in its backbone.
Anyway, I'm wondering where to load my config variables from the database.

A) Create a config_model and load it in my MY_Controller (which is the parent of all my controllers).
B) Or create a MY_Model hierarchy like I did with my controllers and load the config vars from there.

Which one is better? Is there any problem with one of them – maybe I'll come across later?

Hope you can give some hints and help for a CI newbie :-)

Thanks a lot!

- suntrop -


Messages In This Thread
Use My_Model or a separate model class from MY_Controller? - by El Forum - 02-06-2011, 12:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB