I develop most of my apps using CodeIgniter, there is no strict MVC. Generally, I just create models based on database tables or controllers. However, I have two tables ‘campaigns’ and ‘ads’ that are related to one another. So often, there will be “Get Ads By Campaign” and so forth. Would you just create a campaign model and use that for everything? or create one for campaigns and one for ads and anything that uses ‘ads’ generally use the ads model?
Just looking for suggestions on keeping things organized. Thank you!
EDIT:
Or, I could extend the ‘Ads’ model from the campaign model, so I always use $this->campaign_model reference ?
I would do one for each and add convenience methods like
getAdson theCampaignmodel and the corresponding ones on theAdmodel.