PHP code example of heimrichhannot / contao-components

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


$GLOBALS['TL_COMPONENTS'] = array
(
		'bs.inputSlider' => array
     	(
     		'js'  => array
     		(
     			'files' => array
     			(
     				'system/modules/bootstrapper/assets/vendor/seiyria-bootstrap-slider/dist/bootstrap-slider' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',
     				BOOTSTRAPPER_JS_COMPONENT_DIR . '/input-slider/bs.inputSlider' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',
     			),
     		),
     		'css' => array
     		(
     			'files' => array
     			(
     				'system/modules/bootstrapper/assets/vendor/seiyria-bootstrap-slider/dist/css/bootstrap-slider.min.css|screen|static',
     			)
     		),
     	),
     	'bs.tooltip' => array
     	(
     		'js'  => array
     		(
     			'files' => array
     			(
     				BOOTSTRAPPER_JS_COMPONENT_DIR . '/tooltip/bs.tooltip' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',
     			),
     		)
     	),
     	'modernizr'         => array
     	(
     		'js' => array
     		(
     			'files' => array
     			(
     				'system/modules/bootstrapper/assets/vendor/modernizr.min.js|static',
     			),
     			'before'  => 0, // invoke always before jquery of the given key
     			//'after'  => 'bs.core', // invoke always after bs.core
     		),
     	),
);