Skip to content

Commit 8116a1e

Browse files
committed
Fix #138: Add more info to upgrade from v2 guide
1 parent e7521c8 commit 8116a1e

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

guide/en/intro/upgrade-from-v2.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ that's all the business logic has to go to framework-independent classes.
7070
Yii 3 services are conceptually similar to Yii 2 components, so it's a good idea to move reusable parts of your application
7171
into components.
7272

73-
### Learn Docker
73+
## Things to learn
74+
75+
### Docker
7476

7577
Default application templates are using [Docker](https://www.docker.com/get-started/) to run application.
7678
It's a good idea to learn how to use it and use it for your own projects since it provides a lot of benefits:
@@ -79,8 +81,20 @@ It's a good idea to learn how to use it and use it for your own projects since i
7981
2. No need to install anything except Docker itself.
8082
3. Environment is per application, not per server.
8183

82-
### Learn environment variables
84+
### Environment variables
8385

8486
Yii3 application templates are using [environment variables](https://en.wikipedia.org/wiki/Environment_variable)
8587
to configure pars of the application. The concept is [very handy for Dockerized applications](https://12factor.net/)
8688
but might be alien to users of Yii 1.1 and Yii 2.
89+
90+
### Handlers
91+
92+
Unlike Yii2, Yii3 doesn't have controllers per se. Instead, it uses [handlers](../structure/handler.md) which
93+
are similar to controllers but different.
94+
95+
### Application structure
96+
97+
Suggested Yii3 application structure is different from Yii 2.
98+
It's described in [application structure](../structure/overview.md).
99+
100+
Despite that, Yii3 is flexible, so it's still possible to use a structure similar to Yii 2 with Yii 3.

0 commit comments

Comments
 (0)