[eluser]victorche[/eluser]
I have a simple table in my database, where the site owner is adding all the general site settings (like site title, contacts email, twitter username, etc). I need those settings almost on every page (in the footer mostly, but not only).
So my question is... How should I build my logic about this?
Those are 2 simple functions (save_settings and load_settings), but I should not put them in a helper, as there is a database queries involved. According to the tutorials (and MVC concept in general) every model should contain only functions for one controller (page). So, those functions are not for a model also. A library... Sounds strange to create a library for such a small thing.
I also have a MY_Model file, but I am keeping it for really global CRUD methods. I don't want to put those specific functions in MY_Model also.
Please, tell me which is the correct way to do this