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

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.

主站蜘蛛池模板: 神池县| 孝义市| 海城市| 延安市| 赫章县| 兴隆县| 稷山县| 离岛区| 轮台县| 师宗县| 彭州市| 威海市| 奈曼旗| 龙胜| 和龙市| 二连浩特市| 河津市| 沐川县| 迁安市| 大渡口区| 莱阳市| 白朗县| 佳木斯市| 福海县| 惠州市| 行唐县| 绥宁县| 西和县| 巴彦县| 毕节市| 英超| 蒙城县| 固原市| 滨州市| 昭通市| 山丹县| 同江市| 兰考县| 秭归县| 綦江县| 云阳县|