|

楼主 |
发表于 2012-5-10 17:40:45
|
显示全部楼层
蓝灵 发表于 2012-5-10 16:21 
moduleA
--controllers
--models
这个 HMVC 扩展并不是你理解的这个结构,而是
application
|- modules
|- module1
|- controllers
|- controllers.php
|- models
|- models.php
|- views
|- index.php
|- footer.php
|- ...
|- module2
|- controllers
|- controllers.php
|- models
|- models.php
|- views
|- index.php
|- footer.php
|- ...
|- ....
|- controllers
|- ...
|- models
|- ...
|- views
|- ...
区别就是你可以在视图里直接显示一个 module,而你不能在视图里显示控制器。 |
|