博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MVC 总结
阅读量:4635 次
发布时间:2019-06-09

本文共 897 字,大约阅读时间需要 2 分钟。

以下内容摘自 PHP for Absolute Beginners, Thomas Blom Hansen & Jason Lengstorf

The model-view-controller (MVC) design pattern is common approach to organizing scripts consistently. Using a consistent approach to organizing your scripts can help you develop and debug faster and more effectively.

At its most basic, MVC separates coding concerns into three categories: models, views and controllers. A model is a piece of code that represents data. You models should also hold most logic involved in the system you're building. A view is a piece of code that shows information visually. The information to be displayed by the view is received from a model. A controller is a piece of code that retrieves input from users and sends commands to relevant model(s). In short MVC separates user interactions from visual representation from system logic and data.

转载于:https://www.cnblogs.com/Patt/p/6189746.html

你可能感兴趣的文章
shell /dev/null
查看>>
docker 镜像
查看>>
OAuth 2.0攻击面与案例总结
查看>>
centos7grub2 引导win10
查看>>
基于DCMTK的DICOM相关程序编写攻略
查看>>
win7下的IP-主机名映射
查看>>
Alpha版本项目展示
查看>>
朴素贝叶斯知识点概括
查看>>
CentOS7 通过代理上网
查看>>
Asp.net MVC中的ViewData与ViewBag
查看>>
HDU 1693 Eat the Trees
查看>>
Bootstrap 栅格系统 理解与总结
查看>>
oracle的for和i++
查看>>
YML(2)yml 语法
查看>>
线段树专辑——pku 2886 Who Gets the Most Candies?
查看>>
求一个字符串中连续出现的次数最多的子串
查看>>
寒假作业pta3
查看>>
ubuntu使用记录
查看>>
面试题:查询连续出现的数字
查看>>
JS简单实现自定义右键菜单
查看>>