Source of file ElementalMapsController.php
Size: 0,530 Bytes - Last Modified: 2021-12-23T10:51:22+00:00
/var/www/docs.ssmods.com/process/src/src/Controller/ElementalMapsController.php
12345678910111213141516171819202122 | <?php namespace TheWebmen\ElementalMaps\Controller; use DNADesign\Elemental\Controllers\ElementController; use SilverStripe\Core\Config\Config; use SilverStripe\View\Requirements; use TheWebmen\ElementalMaps\Model\ElementalMaps; class ElementalMapsController extends ElementController { public function init() { parent::init(); $config = Config::forClass(ElementalMaps::class); Requirements::javascript('https://maps.googleapis.com/maps/api/js?key=' . $config->get('maps_api_key')); } } |