1. Go to this page and download the library: Download gcworld/formconfig 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/ */
use GCWorld\FormConfig\Fields\TextArea;
$form->createField('notes')
->setType(TextArea::getKey())
->setLabel('Notes');
use GCWorld\FormConfig\Core\Twig as FormConfigTwig;
FormConfigTwig::mapAll($twigEnvironment);
echo $twigEnvironment->render(
'@form_config_BS3/forms/controller.twig',
$form->getTwigArray(),
);
$form->setValues([
'display_name' => 'Ada Lovelace',
'timezone' => 'America/Detroit',
]);
$form->setRequirements([
'display_name' => 2,
]);
$form->setErrors([
'display_name' => 'Display name is