Skip to content

Commit 5cc030b

Browse files
committed
Update readme
1 parent 114011b commit 5cc030b

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ It is possible to use more complex Json objects for example
7575
$json = '{
7676
"inputs": [
7777
{
78-
"input": "text",
78+
"type": "text",
7979
"name": "username",
8080
"id": "username",
8181
"placeholder": "Username",
@@ -106,7 +106,7 @@ Repeaters are supported out of the box for example
106106
$json = '{
107107
"inputs": [
108108
{
109-
"input": "text",
109+
"type": "text",
110110
"name": "username",
111111
"repeat": true
112112
}
@@ -148,11 +148,11 @@ $json = '{
148148
"repeat": true,
149149
"inputs": [
150150
{
151-
"input": "text",
151+
"type": "text",
152152
"name": "username"
153153
},
154154
{
155-
"input": "text",
155+
"type": "text",
156156
"name": "password"
157157
}
158158
]
@@ -239,7 +239,7 @@ A bootstrap horizontal input text will look like this::
239239
<div class="form-group row">
240240
<label<?= $for ?> class="col-sm-2 col-form-label"><?= $label ?></label>
241241
<div class="col-sm-10">
242-
<input type="<?= $input ?>" class="form-control" name="<?= $name ?>"<?= $placeholder . $id . $value ?>>
242+
<input type="<?= $type ?>" class="form-control" name="<?= $name ?>"<?= $placeholder . $id . $value ?>>
243243
</div>
244244
</div>
245245
```
@@ -282,10 +282,6 @@ $form = $builder->render($microForm);
282282
$this->string($form)->isEqualToContentsOfFile($expectedRendering);
283283
```
284284

285-
### Note
286-
287-
This library is part of the [micro php framework](https://github.com/marcomilon/micro).
288-
289285
### Contribution
290286

291287
Feel free to contribute! Just create a new issue or a new pull request.

0 commit comments

Comments
 (0)