问题描述
我听说今天从我的朋友关于HMVC在codignitor..i惊喜这个功能..这是非常有助于大项目..我是悲伤,因为我没有找到任何文章或任何告诉我有HMVC cakephp.so我有两个问题..
任何人有想法在HMAC在cakephp?
这些是给我学习codeignitor吗?
执行HMVC等插件?
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?
在代码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
?>
推荐答案
HMVC只是MVC的一个扩展,并且通过使用插件,元素等部分支持。
在2.1中,甚至会有View块可用。
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.
然而,HMVC的整个概念是可疑的。 Cake的MVC基本原则工作得很好。
The whole concept of HMVC is questionable, though, imo. Cake's MVC basic principles work well enough.
这篇关于关于HMAC在codeigniter和cakephp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!