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
3ba820b6
Commit
3ba820b6
authored
Sep 14, 2014
by
东方孤思子(Paris·QianSen)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Typo for concept-aliases
parent
7634701f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
concept-aliases.md
docs/guide-zh-CN/concept-aliases.md
+1
-1
No files found.
docs/guide-zh-CN/concept-aliases.md
View file @
3ba820b6
...
...
@@ -19,7 +19,7 @@ Yii::setAlias('@bar', 'http://www.example.com');
> 注意:别名所指向的文件路径或 URL 不一定是真实存在的文件或资源。
可以通过在一个别名后面加斜杠
`/`
和一至多个路径分段生成新别名(无需调用
[
[Yii::setAlias()
]
])。我们把通过
[
[Yii::setAlias()
]
] 定义的别名称为
**根别名**
,而用他们衍生出去的别名成为
**衍生别名**
。例如,
`@foo`
就是
跟
别名,而
`@foo/bar/file.php`
是一个衍生别名。
可以通过在一个别名后面加斜杠
`/`
和一至多个路径分段生成新别名(无需调用
[
[Yii::setAlias()
]
])。我们把通过
[
[Yii::setAlias()
]
] 定义的别名称为
**根别名**
,而用他们衍生出去的别名成为
**衍生别名**
。例如,
`@foo`
就是
根
别名,而
`@foo/bar/file.php`
是一个衍生别名。
你还可以用别名去定义新别名(根别名与衍生别名均可):
...
...
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