mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
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
1 changed files with 9 additions and 0 deletions
9
application/views/components/config_script.php
Normal file
9
application/views/components/config_script.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
/**
|
||||
* @var string $attributes
|
||||
*/
|
||||
?>
|
||||
<script <?= $attributes ?>>
|
||||
window.App.Config = <?= json_encode(js_config()) ?>
|
||||
</script>
|
||||
|
Loading…
Reference in a new issue