CodeIgniter Forums
Module support? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forum-29.html)
+--- Thread: Module support? (/thread-61284.html)

Pages: 1 2 3 4 5 6


Module support? - jlp - 04-06-2015

<<From Orionstar>>

My biggest dream about CI is to get module support out of box, maybe HMVC support too. We waited for it in the last 5 years. [Image: smile.gif]


RE: Module support? - gadelat - 04-06-2015

I don't believe HMVC is good concept, however framework should give an option to do that if user wants that. Currently lot of users screws their installations due to usage of third party hmvc solutions.


RE: Module support? - llebkered - 04-08-2015

I quite like the HMVC approach. My vote is for keeping the current MVC arrangement with option to change to HMVC.


RE: Module support? - Hobbes - 04-09-2015

for me i would prefer something more like Modular CI.


RE: Module support? - yurikhita - 04-09-2015

I think that good idea, this lacking, as for me Smile


RE: Module support? - ardhie1032 - 04-09-2015

Maybe like Jens Segers HMVC version..


RE: Module support? - no1youknowz - 04-10-2015

It's quite simple.  If you have to use HMVC to solve whatever problem you are trying to.  Then you just don't know how to design and develop an application.

My answer is no.  There is no need for HMVC.  I have an enterprise application.  It's actually 4 distinct applications built with 1 common middle-ware.  I looked at HMVC in the beginning and laughed.  There was no need.  Actually, it would have complicated things.

Are you high?  A controller which then would hit a model and view and then hit another controller elsewhere?  Yeah, kinda smells like you don't know how to code.


(04-06-2015, 08:59 PM)riwakawd Wrote: One reason is because it lets you have sub folder option in default controller in routes with CI3.

I've had subfolder for many years with CI 2.0. It's called learning how to extend the framework outside of the system folder.


RE: Module support? - josetrindade - 04-10-2015

(04-06-2015, 05:55 PM)jlp Wrote: <<From Orionstar>>

My biggest dream about CI is to get module support out of box, maybe HMVC support too. We waited for it in the last 5 years. [Image: smile.gif]

It seems to me that most people asking for HMVC actually want something similar to Symfony bundles, where you can have an MVC triad inside a folder.


RE: Module support? - dmyers - 04-10-2015

My 2 Cents!
I think extending packages to include everything in the application folder (ie. Controllers) would be great.
I also think allowing multiple sub folders under the controllers would also be great ( /admin/configure/installed/tooltips for example )
The "search" order can get sticky but with enough details about it I think most users would understand it.
What I don't like is controllers calling other controllers? Never got that? If you need to call "shared" code then put it in a library?

DMyers


RE: Module support? - no1youknowz - 04-10-2015

(04-10-2015, 11:27 AM)dmyers Wrote: I also think allowing multiple sub folders under the controllers would also be great ( /admin/configure/installed/tooltips for example )

Like I said. It's already available. Been that way for years. I have that.

/tracking/admin/modules/add/test <-- like that

(04-10-2015, 11:27 AM)dmyers Wrote: What I don't like is controllers calling other controllers? Never got that? If you need to call "shared" code then put it in a library?

Exactly! Big Grin