• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HMVC for CI4

#1
here I suggest that CI4 add HMVC framework.
Q&A for Codeigniter
StartBBS--open-source, light weight forum software.
Best VPS:Digital Ocean
Reply

#2
What, exactly, are you looking for HMVC to give you? I'd be willing to guess that most of it already exists within CI4.
  • A controller is just a class, so you can always create a new instance of any controller (passing the required classes along) and call it, which seems to be one of the hallmarks of HMVC. It is safer to do that now then it was with the hacks necessary with any of the solutions in CI3.
  • Namespaces solve 80%+ of the organizational aspects that HMVC provides, which is one of the 2 primary things I've seen people use it for.
  • The remaining 20% is already handled by allowing language files, helpers, views, etc, to be scanned for, allowing fully modular code if you choose to use it.
  • The final thing I've seen people use it for was the Modules::run() that Wiredesignz's solution provided. View Cells handles that feature.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#3
Seriously, this issue has been beaten to death Sad

https://forum.codeigniter.com/thread-66253.html
https://forum.codeigniter.com/thread-61284.html
https://forum.codeigniter.com/thread-62701.html
https://forum.codeigniter.com/thread-63071.html
https://forum.codeigniter.com/thread-61350.html

Lonnie explained it very well in one of his CodeIgniter4 blog posts:
http://blog.newmythmedia.com/blog/show/2...eIgniter_4
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.