Answer the question
In order to leave comments, you need to log in
MVC, model for each table?
How to correctly build the architecture of MVC application models if, say, there is a need to use several tables, say, in some model class?
Example:
There are tables: classes and schedule.
I create a Schedule model whose getClassSchedule($class_id) method should get data from 2 of these tables (say, class schedule and class name).
So, from the point of view of building code, would it be correct to use calls to several tables in the Schedule model?
Answer the question
In order to leave comments, you need to log in
I create a Schedule model whose getClassSchedule($class_id) method should get data from these 2 tables
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question