mardi 26 mars 2019

MVC pattern > good practice

I'm a little bit confuse with the MVC pattern. If I understand what is Model, View, Controller schema. I don't know what is the correct practice about processing model's request result.

-Model should only handle getter and setter, then it's the controller process datas.

Or

-Model could also own some method to preprocess datas to send it to controller ?

Aucun commentaire:

Enregistrer un commentaire