面向高级 PHP 开发人员的 MVC [英] MVC for advanced PHP developers

查看:44
本文介绍了面向高级 PHP 开发人员的 MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要更有经验的程序员的帮助.我想提高我的 MVC 技能.但是我在 Google 上找不到关于 MVC 的好的教程.Google 总是提供适合初学者的 MVC".

I need some help from more experienced programmers. I want to improve my MVC skills. But I could not find a good tutorial on Google for MVC. Google always gives "MVC for beginners".

我了解 MVC 是什么并且我可以做到,但我的经验不足,无法在 OOP 中做一些实际的事情.

I understand what MVC is and I can make it, but I'm not experienced enough to do something practical in OOP.

如果有人知道一个很好的 MVC 面向对象教程,请指引我到正确的地方——我正在寻找好的链接、书籍等.

If anyone knows a good object-oriented tutorial for MVC, please direct me to the right place — I'm looking for good links, books etc.

推荐答案

包含纯 PHP 材料的链接用 php 标记以便于识别.

Links, that contain PHP-only materials, are marked with php for easier identification.

在全面了解 OOP 之前,您甚至无法开始深入研究 MVC.这包括 OOP 实践(依赖注入单元测试重构a>) 原则 (SOLID, SoCCQSLoD) 和通用模式(不,单例不是面向对象的模式).

You cannot even begin to delve into MVC before you have comprehensive understanding of OOP. That include OOP practices (dependency injection, unit testing, refactoring) principles (SOLID, SoC, CQS, LoD) and common patterns (and no, singleton is not an object-oriented pattern).

MVC 是一种高级的架构设计模式,需要扎实的理解.它不适合初学者或小型hello world"应用程序.当简单地遵守 OOP 实践变得过于松散而无法控制代码库时,可以使用 MVC 向代码库添加额外的约束.

MVC is an advanced architectural design pattern, which requires solid understanding. It is not meant for beginners or for tiny "hello world" applications. One uses MVC to add additional constraints to the codebase, when simple adherence to OOP practices becomes too loose to control the codebase.

我能给你的最好建议是先扩展你关于面向对象代码的知识:

The best I can suggest for you would be to begin by expanding you knowledge regarding object oriented code:

上面的两个讲座应该涵盖基础知识.然后继续:

The two lectures above should cover the basics. And then move on to:

当您理解了本系列中解释的所有内容后,您可以扩展:

When you understand all that was explain in this series, you can expand on:

另外,我强烈建议您阅读(按此顺序):

Also, I would strongly recommend for you to read (in this order):

PS:你也可以看看这本书(谨慎,因为它有问题):PHP 设计模式指南 php

P.S.: you might also take a look at this book (cautiously, because it has issues): Guide to PHP Design Patterns php

这篇关于面向高级 PHP 开发人员的 MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆