Added the config_script.php file that will load the application config values to the global App object
This commit is contained in:
parent
29b22ece3c
commit
62a5ace98e
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
/**
|
||||
* @var string $attributes
|
||||
*/
|
||||
?>
|
||||
<script <?= $attributes ?>>
|
||||
window.App.Config = <?= json_encode(js_config()) ?>
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue