官术网_书友最值得收藏!

The difference between the application controller and front controller patterns

The application controller and front controller patterns are quite similar and can create confusion for some users. The problem that the application controller pattern and front controller patterns solve are similar because both are used to centralize the logic at one point. As well as that, both work together using the design pattern command.

The main difference between the application controller and the front controller is that the application controller works to solve the complexity of view and flow page logic, and the front controller works to solve the complexity of the requests and the configurations of them. When the view and flow logic is simple, all logic is sometimes inserted into the front controller, and the application controller is not then used. However, when the logic within the view and flow page is complex, it is recommended to use the application controller in order to decouple the view and flow logic and organize the code.

主站蜘蛛池模板: 凤阳县| 江川县| 南阳市| 深州市| 方城县| 清丰县| 水富县| 澎湖县| 龙游县| 婺源县| 上高县| 福安市| 老河口市| 台州市| 伊金霍洛旗| 和平县| 阳信县| 河南省| 祁门县| 上犹县| 忻州市| 乌拉特前旗| 朔州市| 普兰县| 阳西县| 固镇县| 搜索| 中牟县| 喀喇沁旗| 泸西县| 青浦区| 佛坪县| 虞城县| 鄯善县| 罗定市| 东乌| 宝应县| 青川县| 兴和县| 于都县| 茂名市|