PHP code example of heimrichhannot-contao-components / flatpickr

1. Go to this page and download the library: Download heimrichhannot-contao-components/flatpickr 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/ */

    

heimrichhannot-contao-components / flatpickr example snippets


$GLOBALS['TL_JAVASCRIPT']['flatpickr'] = 'assets/flatpickr/dist/flatpickr.min.js|static';
$GLOBALS['TL_USER_CSS']['flatpickr'] = 'assets/flatpickr/dist/flatpickr.min.css|static';
// Optional: Localization
$GLOBALS['TL_JAVASCRIPT']['flatpickr'] = 'assets/flatpickr/dist/l10n/de.js|static';

$GLOBALS['TL_JAVASCRIPT']['flatpickr'] = 'assets/components/flatpickr/dist/flatpickr.min.js|static';
$GLOBALS['TL_USER_CSS']['flatpickr'] = 'assets/components/flatpickr/dist/flatpickr.min.css|static';
// Optional: Localization
$GLOBALS['TL_JAVASCRIPT']['flatpickr'] = 'assets/components/flatpickr/dist/l10n/de.js|static';