File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff 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
291287Feel free to contribute! Just create a new issue or a new pull request.
You can’t perform that action at this time.
0 commit comments