mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +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
@ -200,7 +200,7 @@ $session->setFlash('postDeleted', 'You have successfully deleted your post.');
|
|||||||
echo $session->getFlash('postDeleted');
|
echo $session->getFlash('postDeleted');
|
||||||
|
|
||||||
// Request #3
|
// Request #3
|
||||||
// $result will be `false` since the flash message was automatically deleted
|
// $result will be false since the flash message was automatically deleted
|
||||||
$result = $session->hasFlash('postDeleted');
|
$result = $session->hasFlash('postDeleted');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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
|
// checks if "selected" is either 0 or 1, regardless of data type
|
||||||
['selected', 'boolean'],
|
['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],
|
['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
|
```php
|
||||||
[
|
[
|
||||||
// set "age" to be `null` if it is empty
|
// set "age" to be null if it is empty
|
||||||
['age', 'default', 'value' => null],
|
['age', 'default', 'value' => null],
|
||||||
|
|
||||||
// set "country" to be "USA" if it is empty
|
// set "country" to be "USA" if it is empty
|
||||||
|
Reference in New Issue
Block a user