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
c6bd238f
Commit
c6bd238f
authored
Sep 30, 2014
by
Funson Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
litter modify
parent
dc8ebf64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
structure-applications.md
docs/guide-zh-CN/structure-applications.md
+1
-1
No files found.
docs/guide-zh-CN/structure-applications.md
View file @
c6bd238f
...
...
@@ -4,7 +4,7 @@
应用主体是管理Yii应用系统整体结构和生命周期的对象。
每个Yii应用系统只能包含一个应用主体,应用主体在
[
入口脚本
](
structure-entry-scripts.md
)
中创建并能通过表达式
`\Yii::$app`
全局范围内访问。
> 补充: 当我们说"一个应用",它可能是一个应用
对象,也可能是一个应用系统,是根据上下文来决定
。
> 补充: 当我们说"一个应用",它可能是一个应用
主体对象,也可能是一个应用系统,是根据上下文来决定[译:中文为避免歧义,Application翻译为应用主体]
。
Yii有两种应用主体:
[
[yii\web\Application|网页应用主体
]
] and
[
[yii\console\Application|控制台应用主体
]
], 如名称所示,前者主要处理网页请求,后者处理控制台请求。
...
...
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