Skip to content

Commit

Permalink
upgrading to formularium 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobg committed Sep 29, 2021
1 parent b7f7062 commit 6c50252
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"homepage": "https://github.com/Corollarium/FormulariumApp",
"require": {
"php": ">=7.2.0",
"corollarium/formularium": "^0.9.0"
"corollarium/formularium": "^0.10.0"
},
"scripts": {
}
Expand Down
46 changes: 23 additions & 23 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
use Formularium\Element;

// set your framework composition.
// For example, this builds HTML using Bootstrap as CSS and the Vue framework.
$composer = FrameworkComposer::create(['HTML', 'Bootstrap']);
$composer = FrameworkComposer::create(['HTML', 'HTMLValidation', 'Bootstrap']);

// get your model data.
$model = modelData();
Expand Down Expand Up @@ -38,7 +37,7 @@
This is a simple example of using <a href="https://github.com/Corollarium/Formularium">Formularium</a> in a framework agnostic way.
</p>
<form method="POST" action="/post.php">
<?php // render a form
<?php // render a form
echo $model->editable($composer);
echo $submitButton;
?>
Expand Down

0 comments on commit 6c50252

Please sign in to comment.