mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
docs/guide fix [ci skip] (#13470)
* docs/guide/runtime-sessions-cookies.md typo fix [ci skip] * docs/guide/tutorial-core-validators.md typo fixed [ci skip]
This commit is contained in:

committed by
Alexander Makarov

parent
37b8cbb2d0
commit
a3a868e427
@ -26,7 +26,7 @@ In the following, we will describe the main usage and properties of every core v
|
||||
// checks if "selected" is either 0 or 1, regardless of data type
|
||||
['selected', 'boolean'],
|
||||
|
||||
// checks if "deleted" is of boolean type, either `true` or `false`
|
||||
// checks if "deleted" is of boolean type, either true or false
|
||||
['deleted', 'boolean', 'trueValue' => true, 'falseValue' => false, 'strict' => true],
|
||||
]
|
||||
```
|
||||
@ -175,7 +175,7 @@ or `1970-01-01` in the input field of a date picker.
|
||||
|
||||
```php
|
||||
[
|
||||
// set "age" to be `null` if it is empty
|
||||
// set "age" to be null if it is empty
|
||||
['age', 'default', 'value' => null],
|
||||
|
||||
// set "country" to be "USA" if it is empty
|
||||
|
Reference in New Issue
Block a user