PHP code example of becklyn / ordered-form-bundle
1. Go to this page and download the library: Download becklyn/ordered-form-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
becklyn / ordered-form-bundle example snippets
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class SomeForm extends AbstractType
{
/**
* @inheritDoc
*/
public function buildForm (FormBuilderInterface $builder, array $options) : void
{
$builder
->add("field", null, [
"position" => /* some value */
]);
}
}