简体   繁体   中英

Zend2 : how default skeleton 'Application module' is rendered, when i trigger Album module?

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.

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 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM