CodeIgniter Forums
witch one is better In this two MVC diagram Models? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10)
+--- Thread: witch one is better In this two MVC diagram Models? (/showthread.php?tid=67324)



witch one is better In this two MVC diagram Models? - nima-habibkhoda - 02-10-2017

we are design two kind of MVC models that you can see in picture below . in first diagram , we have one controller that can work on routers ." Decide Library " , is for deciding that witch model wee need for Route that comes to controller .

in second diagram , we have one controller that has some Sub Controller by the routes , each sub controller can decide witch model can be include .
sorry if i cant explain good .
my question is that witch one is better for bigData ?

   


RE: witch one is better In this two MVC diagram Models? - InsiteFX - 02-10-2017

I believe in one model per controller to keep things simple to modify later.


RE: witch one is better In this two MVC diagram Models? - skunkbad - 02-10-2017

I think you're going to find that if your website has any real complexity that there is not going to be one way of doing things.