I am currently working on a login system for a site using the Zend Framework for its MVC architecture.
Which design makes more sense
-
registration and login each gets its own set of model, views and controllers.
-
both the registration and login is implemented within the same model, view and controller.
Would love to hear the arguments for and against both design patterns so i can better understand the “preferred” or “best” way to implement a program using the MVC architecture.
I think separate
controllersandviewsshould be used for Login(Authentication) and Registration but same databaseModel,DbTableandMapperclasses can be used for both.For Example:
Login Controller:
Access URL: projectname.com/login
Registration Controller:
Access URL: projectname.com/registration
BUT same: