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
1e980ae9
Commit
1e980ae9
authored
Jul 27, 2014
by
东方孤思子(Paris·QianSen)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo fix
parent
25bfb95a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
tutorial-core-validators.md
docs/guide-zh-CN/tutorial-core-validators.md
+2
-3
No files found.
docs/guide-zh-CN/tutorial-core-validators.md
View file @
1e980ae9
...
...
@@ -184,7 +184,7 @@ function foo($model, $attribute) {
]
```
该验证器检查输入值是否在表字段中存在。它只对
[
活动记录
](
db-active-record.md
)
模型的特性起作用。它支持对一个或多
过
字段的验证。
该验证器检查输入值是否在表字段中存在。它只对
[
活动记录
](
db-active-record.md
)
模型的特性起作用。它支持对一个或多
个
字段的验证。
-
`targetClass`
:the name of the
[
Active Record
](
db-active-record.md
)
class that should be used
to look for the input value being validated. If not set, the class of the model currently being validated will be used.
...
...
@@ -446,4 +446,4 @@ either a single column or multiple columns.
-
`validSchemes`
:用于指定那些 URI 方案会被视为有效的数组。默认为
`['http', 'https']`
,代表
`http`
和
`https`
URLs 会被认为有效。
-
`defaultScheme`
:若输入值没有对应的方案前缀,会使用的默认 URI 方案前缀。默认为 null,代表不修改输入值本身。
-
`enableIDN`
:验证过程是否应该考虑 IDN(internationalized domain names,国际化域名,也称多语种域名,比如中文域名)。默认为 false。要注意但是为使用 IDN 验证功能,请先确保安装并开启
`intl`
PHP 扩展,不然会导致抛出异常。
\ No newline at end of file
-
`enableIDN`
:验证过程是否应该考虑 IDN(internationalized domain names,国际化域名,也称多语种域名,比如中文域名)。默认为 false。要注意但是为使用 IDN 验证功能,请先确保安装并开启
`intl`
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