I use the Zend framework and doctrine in this application
In my web application, I have various separate modules, such as events, conferences, case studies .. that's why I am doing the controller design at the moment. In the document below, the regulatory document is the controller, and its subsystem is its actions. Thus, regulatory documents, videos, podcasts have almost the same functionality. so this design fits ...? In mvc for each action I will have a separate view. And as a user, I may need to set access levels on these modules. so I kept a separate controller so that I could easily control the module for each type of user. But this leads to code duplication.

Now I am thinking of making one parent class and in this case I will have all the common methods. eg. I will have the shared resources of the class and I will store the list, search, suggestion, addFavorite, etc. And this will be the parent for the above controllers.
So how can I control my presentation for all of these different modules if I go with this approach ...? if I go with this, than my code will be a bit messy ..?
php design-patterns model-view-controller zend-framework
Jaimin
source share