主要用thinkphp,我看了很多人分享的代码,他们把view和controller之间的分离很彻底,但controller和model之间的分离几乎没有,有的几乎不用model层。大家怎么想?
越努力越幸运!!!
About the interaction between the controller and model of the mvc structure? -PHP Chinese website Q&A-About the interaction between the controller and model of the MVC structure? -PHP Chinese website Q&A
Let’s take a look and learn.
开发速度快吧,TP中几乎不会复用的数据操作,直接在controller里用M方法要比再额外建个model快得多
About the interaction between the controller and model of the mvc structure? -PHP Chinese website Q&A-About the interaction between the controller and model of the MVC structure? -PHP Chinese website Q&A
Let’s take a look and learn.
开发速度快吧,TP中几乎不会复用的数据操作,直接在controller里用M方法要比再额外建个model快得多