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
eaaf5f02
Commit
eaaf5f02
authored
Mar 23, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced tabs with spaces in docs.
parent
994780d1
Show whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
2 additions
and
2 deletions
+2
-2
active-record.md
docs/guide/active-record.md
+0
-0
apps-advanced.md
docs/guide/apps-advanced.md
+0
-0
apps-basic.md
docs/guide/apps-basic.md
+0
-0
assets.md
docs/guide/assets.md
+0
-0
authentication.md
docs/guide/authentication.md
+0
-0
authorization.md
docs/guide/authorization.md
+0
-0
behaviors.md
docs/guide/behaviors.md
+0
-0
bootstrap-widgets.md
docs/guide/bootstrap-widgets.md
+0
-0
caching.md
docs/guide/caching.md
+0
-0
configuration.md
docs/guide/configuration.md
+0
-0
console-fixture.md
docs/guide/console-fixture.md
+0
-0
console-migrate.md
docs/guide/console-migrate.md
+0
-0
console.md
docs/guide/console.md
+0
-0
controller.md
docs/guide/controller.md
+0
-0
data-grid.md
docs/guide/data-grid.md
+0
-0
data-providers.md
docs/guide/data-providers.md
+0
-0
data-widgets.md
docs/guide/data-widgets.md
+0
-0
database-basics.md
docs/guide/database-basics.md
+0
-0
error.md
docs/guide/error.md
+0
-0
events.md
docs/guide/events.md
+0
-0
form.md
docs/guide/form.md
+0
-0
gii.md
docs/guide/gii.md
+0
-0
i18n.md
docs/guide/i18n.md
+0
-0
logging.md
docs/guide/logging.md
+0
-0
model.md
docs/guide/model.md
+2
-2
module-debug.md
docs/guide/module-debug.md
+0
-0
performance.md
docs/guide/performance.md
+0
-0
query-builder.md
docs/guide/query-builder.md
+0
-0
security.md
docs/guide/security.md
+0
-0
template.md
docs/guide/template.md
+0
-0
test-fixture.md
docs/guide/test-fixture.md
+0
-0
theming.md
docs/guide/theming.md
+0
-0
upgrade-from-v1.md
docs/guide/upgrade-from-v1.md
+0
-0
url.md
docs/guide/url.md
+0
-0
using-3rd-party-libraries.md
docs/guide/using-3rd-party-libraries.md
+0
-0
validation.md
docs/guide/validation.md
+0
-0
view.md
docs/guide/view.md
+0
-0
No files found.
docs/guide/active-record.md
View file @
eaaf5f02
docs/guide/apps-advanced.md
View file @
eaaf5f02
docs/guide/apps-basic.md
View file @
eaaf5f02
docs/guide/assets.md
View file @
eaaf5f02
docs/guide/authentication.md
View file @
eaaf5f02
docs/guide/authorization.md
View file @
eaaf5f02
docs/guide/behaviors.md
View file @
eaaf5f02
docs/guide/bootstrap-widgets.md
View file @
eaaf5f02
docs/guide/caching.md
View file @
eaaf5f02
docs/guide/configuration.md
View file @
eaaf5f02
docs/guide/console-fixture.md
View file @
eaaf5f02
docs/guide/console-migrate.md
View file @
eaaf5f02
docs/guide/console.md
View file @
eaaf5f02
docs/guide/controller.md
View file @
eaaf5f02
docs/guide/data-grid.md
View file @
eaaf5f02
docs/guide/data-providers.md
View file @
eaaf5f02
docs/guide/data-widgets.md
View file @
eaaf5f02
docs/guide/database-basics.md
View file @
eaaf5f02
docs/guide/error.md
View file @
eaaf5f02
docs/guide/events.md
View file @
eaaf5f02
docs/guide/form.md
View file @
eaaf5f02
docs/guide/gii.md
View file @
eaaf5f02
docs/guide/i18n.md
View file @
eaaf5f02
docs/guide/logging.md
View file @
eaaf5f02
docs/guide/model.md
View file @
eaaf5f02
...
@@ -258,7 +258,7 @@ for example the [[yii\validators\InlineValidator::$skipOnEmpty|skipOnEmpty]] pro
...
@@ -258,7 +258,7 @@ for example the [[yii\validators\InlineValidator::$skipOnEmpty|skipOnEmpty]] pro
[[
'birthdate'
],
'validateAge'
,
'params'
=>
[
'min'
=>
'12'
],
'skipOnEmpty'
=>
false
],
[[
'birthdate'
],
'validateAge'
,
'params'
=>
[
'min'
=>
'12'
],
'skipOnEmpty'
=>
false
],
```
```
###
c
onditional validation
###
C
onditional validation
To validate attributes only when certain conditions apply, e.g. the validation of
To validate attributes only when certain conditions apply, e.g. the validation of
one field depends on the value of another field you can use
[
[yii\validators\Validator::when|the `when` property
]
]
one field depends on the value of another field you can use
[
[yii\validators\Validator::when|the `when` property
]
]
...
@@ -353,7 +353,7 @@ class User extends ActiveRecord
...
@@ -353,7 +353,7 @@ class User extends ActiveRecord
}
}
```
```
For the code above mass assignment will be allowed st
s
rictly according to
`scenarios()`
:
For the code above mass assignment will be allowed strictly according to
`scenarios()`
:
```
php
```
php
$user
=
User
::
find
(
42
);
$user
=
User
::
find
(
42
);
...
...
docs/guide/module-debug.md
View file @
eaaf5f02
docs/guide/performance.md
View file @
eaaf5f02
docs/guide/query-builder.md
View file @
eaaf5f02
docs/guide/security.md
View file @
eaaf5f02
docs/guide/template.md
View file @
eaaf5f02
docs/guide/test-fixture.md
View file @
eaaf5f02
docs/guide/theming.md
View file @
eaaf5f02
docs/guide/upgrade-from-v1.md
View file @
eaaf5f02
docs/guide/url.md
View file @
eaaf5f02
docs/guide/using-3rd-party-libraries.md
View file @
eaaf5f02
docs/guide/validation.md
View file @
eaaf5f02
docs/guide/view.md
View file @
eaaf5f02
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