Home  >  Article  >  Backend Development  >  为什么mvc需要添加多一个l层

为什么mvc需要添加多一个l层

WBOY
WBOYOriginal
2016-06-06 20:14:151113browse

公司使用mvc 控制器不是直接调用模型层 而是控制器调用一个中间层来 中间层在调用数据这样的形式

回复内容:

公司使用mvc 控制器不是直接调用模型层 而是控制器调用一个中间层来 中间层在调用数据这样的形式

给controller层减负,使得controller比较清晰,方便写测试代码
添加l一般是逻辑比较复杂!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn