Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
bab7e519
Commit
bab7e519
authored
Nov 02, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5862 from huoshi5151/patch-4
[skip ci] repeat fixed
parents
530537e4
a1fd9c64
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
structure-controllers.md
docs/guide-zh-CN/structure-controllers.md
+1
-2
No files found.
docs/guide-zh-CN/structure-controllers.md
View file @
bab7e519
...
@@ -378,8 +378,7 @@ class SiteController extends Controller
...
@@ -378,8 +378,7 @@ class SiteController extends Controller
## 控制器生命周期 <a name="controller-lifecycle"></a>
## 控制器生命周期 <a name="controller-lifecycle"></a>
处理一个请求时,
[
应用主体
](
structure-applications.md
)
会根据请求
[
路由
](
#routes
)
创建一个控制器,will create a controller
处理一个请求时,
[
应用主体
](
structure-applications.md
)
会根据请求
[
路由
](
#routes
)
创建一个控制器,控制器经过以下生命周期来完成请求:
控制器经过以下生命周期来完成请求:
1.
在控制器创建和配置后,
[
[yii\base\Controller::init()
]
] 方法会被调用。
1.
在控制器创建和配置后,
[
[yii\base\Controller::init()
]
] 方法会被调用。
2.
控制器根据请求操作ID创建一个操作对象:
2.
控制器根据请求操作ID创建一个操作对象:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment