Browse Source

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]
tags/2.0.11
Nobuo Kihara 8 years ago committed by Alexander Makarov
parent
commit
a3a868e427
  1. 2
      docs/guide/runtime-sessions-cookies.md
  2. 4
      docs/guide/tutorial-core-validators.md

2
docs/guide/runtime-sessions-cookies.md

@ -200,7 +200,7 @@ $session->setFlash('postDeleted', 'You have successfully deleted your post.');
echo $session->getFlash('postDeleted');
// 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');
```

4
docs/guide/tutorial-core-validators.md

@ -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

Loading…
Cancel
Save