PHP code example of surda / forms-rendering

1. Go to this page and download the library: Download surda/forms-rendering 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/ */

    

surda / forms-rendering example snippets


use Surda\Forms\Rendering\Bs4HorizontalFormRenderer;
use Nette\Application\UI\Form;

$form = new Form();
$form->setRenderer(new Bs4HorizontalFormRenderer());

use Surda\Forms\Rendering\Bs4VerticalFormRenderer;
use Nette\Application\UI\Form;

$form = new Form();
$form->setRenderer(new Bs4VerticalFormRenderer());