Iam just starting with Zend2. i went through this Zend doc and it is very useful in setting up the project/ understand the flow. i setup my first module Album (mentioned in the tutor) and it is working fine.
What i wanted to understand is,
i trigger the album module using link http://localhost/album and i get the browser output in such a way that Album module output is embedded into another default module 'Application'. The when i trigger the localhost url http://localhost/album, i expect the output of only the Album module which is written in viewscripts and it's output is basic html output with table. Could you please let me know how the application module gets executed when i trigger album module?
i am aware that we configure userdefined modules in zf\config\application.config.php file
i know myquery here is a basic thing which i didnt understand. Any help is appreciated.
When your ZF2 application is booted all modules in your application.config.php are loaded. It is a misconception to think that if you use a route from a certain module that all other modules are ignored. This is also explained here and this flow chart can also be helpful to understand the ZF2 processes.