Home > Backend Development > PHP Tutorial > MVC的MODEL层是不是不可以抛出错误?

MVC的MODEL层是不是不可以抛出错误?

WBOY
Release: 2016-06-13 12:31:57
Original
779 people have browsed it

MVC的MODEL层是不是不可以抛出异常??
有人对我说 " 针对于mvc的设计 model层不应该进行任何的抛错等操作。这些操作应该由c来完成。"

是这样的吗? M层为什么不能抛出异常? 我无法理解

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template