about HMVC in codeigniter and cakephp?

你。 提交于 2019-12-07 18:26:10

问题


i heard today from my friend about HMVC in codignitor..i surprise for this feature..it is very helping in the big projects .. and i am Sad because i cant found any article or anything tell me there are HMVC in cakephp..so i have two questions.. Anyone have idea for HMVC in cakephp? Is these Brings me to learn codignitor ? Do the plugins, such as HMVC?

login example in codignitor HMVC

<?php
hmvcExample/application/modules/login/controllers/  
hmvcExample/application/modules/login/models/  
hmvcExample/application/modules/login/views/ 
ci_day6/application/controllers/login.php  
ci_day6/application/models/membership_model.php  
ci_day6/application/views/login_form.php  
ci_day6/application/views/signup_form.php  
ci_day6/application/views/signup_successful.php  

?>

回答1:


http://book.cakephp.org/view/890/Understanding-Model-View-Controller

HMVC is only a extension of MVC and is partly supported by using Plugins, elements etc. In 2.1 there will even be View blocks available.

The whole concept of HMVC is questionable, though, imo. Cake's MVC basic principles work well enough.



来源:https://stackoverflow.com/questions/8693443/about-hmvc-in-codeigniter-and-cakephp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!