如何在 Laravel 4 中实现 HMVC
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17439524/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to implement HMVC in Laravel 4
提问by Sakibul Alam
Does laravel 4 have built in support for hmvc or are there bundles for this functionality? What is the best way to use HMVC in laravel 4.
laravel 4 是否内置了对 hmvc 的支持,或者是否有此功能的捆绑包?在 Laravel 4 中使用 HMVC 的最佳方式是什么?
回答by Thomas Clarkson
This tutorial shows you how to implement modules in laravel 4 http://creolab.hr/2013/05/modules-in-laravel-4/
本教程向您展示如何在 laravel 4 中实现模块http://creolab.hr/2013/05/modules-in-laravel-4/
回答by user2094178
Here is one more hmvc option, https://github.com/LevareCMS/modulemanager
这里还有一个 hmvc 选项,https://github.com/LevareCMS/modulemanager
If you come from codeigniter, you may like this, http://forums.laravel.io/viewtopic.php?id=8664
如果你来自codeigniter,你可能会喜欢这个,http://forums.laravel.io/viewtopic.php?id=8664
Also is worth mentioning, depending on your needs, a view composermay achieve what you want.
另外值得一提的是,根据您的需要,视图作曲家可能会实现您想要的。
回答by Reyz_MyNick
It was implemented with laravel 4 in HMVC. You can clone at: https://github.com/ReyzWB/Laravel-4-Modular-Approach
它是在 HMVC 中使用 laravel 4 实现的。您可以在以下位置进行克隆:https: //github.com/ReyzWB/Laravel-4-Modular-Approach