symbiotic / ui_form
Templates for `symbiotic/form` package.
Installs: 38
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: >=8.0
This package is auto-updated.
Last update: 2024-11-13 01:15:55 UTC
README
Templates for "symbiotic/form" package.
Instead of this template package, you can use your own. To use your template package, you need to subscribe to the "\Symbiotic\Form\FormBuilder" event and perform a replacement:
// Global class MyFormTemplates { public function handle(\Symbiotic\Form\FormBuilder $formBuilder) { $formBuilder::setTemplatesPackageId('form_templates_package'); } }
Or:
$global = \Symbiotic\Form\FormBuilder::getTemplatesPackageId(); \Symbiotic\Form\FormBuilder::setTemplatesPackageId('form_templates_package'); /// render form with other templates \Symbiotic\Form\FormBuilder::setTemplatesPackageId($global);