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

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.

主站蜘蛛池模板: 肥乡县| 新昌县| 平山县| 绵竹市| 泗阳县| 龙山县| 什邡市| 洛南县| 定结县| 聂拉木县| 南部县| 札达县| 襄城县| 汽车| 南召县| 清新县| 琼结县| 黄平县| 中阳县| 沙雅县| 淳化县| 桂阳县| 长白| 依安县| 大冶市| 云浮市| 平昌县| 西乡县| 同江市| 鄂伦春自治旗| 四会市| 达日县| 永寿县| 双辽市| 扶风县| 封开县| 镇康县| 康平县| 淳化县| 鄂尔多斯市| 休宁县|