Files
yii2/docs/guide-zh-CN/start-prerequisites.md

24 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 你需要了解什么What do you need to know
Yii 的学习曲线并不像其他 PHP 框架那样陡峭,但仍然需要一些基础知识。
## PHP
Yii 是一个 PHP 框架,因此请确保您 [阅读并理解语言参考](https://www.php.net/manual/zh/langref.php)。
用 Yii 进行开发时,您将以面向对象的方式编写代码,因此请确保您熟悉[类与对象](https://www.php.net/manual/en/language.oop5.basic.php)以及[命名空间](https://www.php.net/manual/en/language.namespaces.php)。
## 面向对象编程Object oriented programming
对面向对象编程的基本理解是必需的。如果您不熟悉它,请选中其中一个
可用的教程,如 [tuts+](https://code.tutsplus.com/tutorials/object-oriented-php-for-beginners--net-12762)。
请注意,您的应用程序越复杂,您需要学习的更高级的 OOP 概念才能成功
掌握这种复杂度。
## 命令行和 ComposerCommand line and composer
Yii 广泛使用了标准的 PHP 包管理器 [Composer](https://getcomposer.org/),因此请确保您阅读
并理解其指南。如果您不熟悉命令行,现在该开始尝试了。
一旦你学会了基础知识,你就永远不想在没有它的情况下工作。