Skip to content

Commit

Permalink
Fixes on form documentation (#206)
Browse files Browse the repository at this point in the history
* Adjust method name in forms tutorial

The method name is different between code example and explanation. Adjusted to the correct one.

* Update the descritption of how to fill the form with data
  • Loading branch information
glpzzz authored Mar 4, 2024
1 parent 2b3832a commit 703de49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guide/en/start/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The class extends from a base class provided by Yii, commonly used to
represent form data.

The `EchoForm` class has `$message` property and related getter.
These are regular data-related code. `attributeLabels()` method provides labels that you're going to display in a view.
These are regular data-related code. `getPropertyLabels()` method provides labels that you're going to display in a view.

## Using the form <span id="using-form"></span>

Expand Down Expand Up @@ -95,7 +95,7 @@ class EchoController
}
```

Instead of reading from request directly, you fill your form with the help of `load()` method if the request
Instead of reading from request directly, you fill your form with the help of `Yiisoft\Hydrator\Hydrator::hydrate()` method if the request
method is POST and then pass it to your view.

Now, to allow POST, you need to adjust your route in `config/routes.php`:
Expand Down

0 comments on commit 703de49

Please sign in to comment.