Added the config_script.php file that will load the application config values to the global App object

This commit is contained in:
Alex Tselegidis 2021-12-14 07:48:09 +01:00
parent 29b22ece3c
commit 62a5ace98e

View file

@ -0,0 +1,9 @@
<?php
/**
* @var string $attributes
*/
?>
<script <?= $attributes ?>>
window.App.Config = <?= json_encode(js_config()) ?>
</script>