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
77871438
Commit
77871438
authored
Nov 18, 2014
by
Nin
Committed by
Carsten Brandt
Nov 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update structure-applications.md
little fix close #6098
parent
6cd885e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
structure-applications.md
docs/guide-zh-CN/structure-applications.md
+3
-3
No files found.
docs/guide-zh-CN/structure-applications.md
View file @
77871438
...
...
@@ -451,7 +451,7 @@ $width = \Yii::$app->params['thumbnail.size'][0];
例如在事件处理中根据某些参数动态设置[[yii\base\Application::language]]语言属性。
### [[yii\base\Application::EVENT_
BEFORE
_REQUEST|EVENT_AFTER_REQUEST]] <a name="afterRequest"></a>
### [[yii\base\Application::EVENT_
AFTER
_REQUEST|EVENT_AFTER_REQUEST]] <a name="afterRequest"></a>
该事件在应用处理请求*after*之后但在返回响应*before*之前触发,实际的事件名为`afterRequest`。
...
...
@@ -460,7 +460,7 @@ $width = \Yii::$app->params['thumbnail.size'][0];
注意 [[yii\web\Response|response]] 组件在发送响应给终端用户时也会触发一些事件,这些事件都在本事件*after*之后触发。
### [[yii\base\Application::EVENT_BEFORE_
REQUEST
|EVENT_BEFORE_ACTION]] <a name="beforeAction"></a>
### [[yii\base\Application::EVENT_BEFORE_
ACTION
|EVENT_BEFORE_ACTION]] <a name="beforeAction"></a>
该事件在每个 [控制器动作](structure-controllers.md) 运行*before*之前会被触发,实际的事件名为 `beforeAction`.
...
...
@@ -483,7 +483,7 @@ $width = \Yii::$app->params['thumbnail.size'][0];
任何一个事件处理中设置 [[yii\base\ActionEvent::isValid]] 设置为 `false` 会停止触发后面的事件。
### [[yii\base\Application::EVENT_
BEFORE_REQUEST
|EVENT_AFTER_ACTION]] <a name="afterAction"></a>
### [[yii\base\Application::EVENT_
AFTER_ACTION
|EVENT_AFTER_ACTION]] <a name="afterAction"></a>
该事件在每个 [控制器动作](structure-controllers.md) 运行*after*之后会被触发,实际的事件名为 `afterAction`.
...
...
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