PHP code example of mvccore / ext-form-field-file
1. Go to this page and download the library: Download mvccore/ext-form-field-file 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-file example snippets
$form = (new \MvcCore\Ext\Form($controller))->SetId('demo');
...
$photos = new \MvcCore\Ext\Forms\Fields\Time([
'name' => 'photos',
'label' => 'Add your photos:',
'accept' => 'image/*',
'maxCount' => 5, // max. uploaded photos
'maxSize' => 2097152, // max. 2 MB in binary for one item
]);
...
$form->AddFields($photos);