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