CodeIgniter Forums
Modular MVC or Classic MVC - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: Modular MVC or Classic MVC (/showthread.php?tid=79477)



Modular MVC or Classic MVC - Bary - 06-22-2021

Hi,

I was asked to develop an e-commerce with Codeigniter v4, and I would like to know your opinion on the structure of the file in terms of performance and best practice , Classic MVC or Modular MVC? 
thank you


RE: Modular MVC or Classic MVC - paliz - 06-22-2021

Code modules %100
Splite project to small parts which can export and inport easily and change
So see math auth for ci4 its best pratice


RE: Modular MVC or Classic MVC - MGatner - 06-22-2021

I answered you on Slack but I will copy my opinion here for forum readers.

Application architecture is not nearly as important with autoloading these days. I’m in favor of the using the framework’s native structure (“MVC”) so new developers to a project will already know the structure; anything I think I will reuse across other projects I publish as a separate module, which ends up making the final product a bit of a hybrid with HMVC.