PHP code example of symbiotic / ui_form

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

    

symbiotic / ui_form example snippets


// Global
class MyFormTemplates
{
  public function handle(\Symbiotic\Form\FormBuilder $formBuilder)
  {
     $formBuilder::setTemplatesPackageId('form_templates_package');
  }
}

$global = \Symbiotic\Form\FormBuilder::getTemplatesPackageId();
\Symbiotic\Form\FormBuilder::setTemplatesPackageId('form_templates_package');

/// render form with other templates

\Symbiotic\Form\FormBuilder::setTemplatesPackageId($global);