mercredi 5 juin 2019

MVC - Multiple model, controller and view

I need to create a web application following the MVC pattern. I have one model that stores a map and an user model that stores his email and other informations. Based on the user authentication my page should print a map with more functionalities and/or a login form. What should be the pattern structure? Do I need to create two controllers and two views, one for the map and the other one for the user, or just one controller and two views? What should happen if I have two separate views and one have to call a function of the controller that manage the other view? Consider that I have to implement my application using Javascipt vanilla + Jquery, I cannot use any framework.

Aucun commentaire:

Enregistrer un commentaire