PHP code example of mvccore / ext-form-field-button
1. Go to this page and download the library: Download mvccore/ext-form-field-button 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/ */
mvccore / ext-form-field-button example snippets
$form = (new \MvcCore\Ext\Form($controller))->SetId('demo');
...
// buttons has not labels, only values:
$reset = new \MvcCore\Ext\Forms\Fields\ResetInput();
$reset
->SetName('reset_form')
->SetValue('Clean all values:');
$submit = new \MvcCore\Ext\Forms\Fields\SubmitButton([
'name' => 'send',
'value' => 'Save',
]);
...
$form->AddFields($reset, $submit);