Source of file ElementalMapsController.php
Size: 0,522 Bytes - Last Modified: 2021-12-24T05:16:13+00:00
/var/www/docs.ssmods.com/process/src/src/Controller/ElementalMapsController.php
12345678910111213141516171819202122 | <?php namespace Huubl\ElementalMaps\Controller; use DNADesign\Elemental\Controllers\ElementController; use SilverStripe\Core\Config\Config; use SilverStripe\View\Requirements; use Huubl\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')); } } |