The fundamental goal of any MVC Framework is to enable easier segregation of three layers of the MVC, namely, model, view, and controller. Before we get to the details of creating modules, let's quickly try to understand how these three layers work in an MVC Framework:
Model: The model is a representation of data; the model also holds the business logic for various application transactions.
View: The view contains the display logic that is used to display the various user interface elements in the web browser.
Controller: The controller controls the application logic in any MVC application; all actions and events are handled at the controller layer. The controller layer serves as a communication interface between the model and the view by controlling the model state and also by representing the changes to the view. The controller also provides an entry point for accessing the application.
In the new ZF2 MVC structure, all the models, views, and controllers are grouped by modules...