[eluser]Noy Gabay[/eluser]
Hi y'all, I've got this situation with my models, and I'm not sure what's the best practice for this matter so I thought I'd discuss it here.
I am currently structuring a website that has many privilege groups, and a bunch of controllers.
It has a forum, polls, personal zone, group zone, news etc.
In my main page, I need to preform a whole bunch of actions that result from several tables in my DB (mainly regarding it's privileges, like what forums is the user allowed to access etc.).
now, I was wondering - what is the best practice for that - should I actually
load all the modules (around 6) to preform some simple actions or
create a new model that will only preform these simple queries (but may repeat some of the functions in the original modules)?
I know that writing the same function twice is a big no no as far as object oriented programming, but loading 6 modules for some simple retrieve functions seems like too much of an unneeded overhead..
Any advice would be greeted!!