duanang58939 2015-09-21 10:12
浏览 32

Zend2:当我触发相册模块时,如何呈现默认骨架“应用程序模块”?

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.

  • 写回答

1条回答 默认 最新

  • duanbinian2243 2015-09-21 10:48
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)