0
I have 4 tables in the database:
Admin - Teacher - Class - Student
and my doubt is :
I would have to create:
Adminmodel.class.php
Professormodel.class.php
Turmamodel.class.php
Alunomodel.class.php
Adminview.class.php
Professorview.class.php
Turmaview.class.php
Alunoview.class.php
Admincontroller.class.php
Professorcontroller.class.php
Turmacontroller.class.php
Alunocontroller.class.php
So from what I understand, whenever I have a unique feature I will have one (Controller, Model and a View) for it. Like if I had "Products" and "Services" I would have to create one for each?
– Michael Alves
Exactly, except maybe there is no need for a view if it is an aggregation or composition.
– Guilherme Lautert