Search code examples
zend-frameworkhmvczend-framework-modules

What functionality should go into Zend Framework modules?


I'm a bit puzzled about Zend Framework modules. I mean - I understand that you would usually want to have frontend and backend module... right?

But - What else would you separate out into modules?

can someone who uses Zend Framework professionally give an example of what modules they have in their application?


Solution

  • In the Zend MVC lingo a module is an independent part of your application. For example if you want to write a Content Management System you will probably have different modules like

    • Main application (user login, application bootstrap etc.)
    • Blog
    • News
    • Admin panel
    • Image gallery

    Basically each of these modules could act as a separate application (although they will eventually be interconnected). The module approach also gives you an easy way for permission management (e.g. users can only pay for using certain modules).