Hi, I am try access my constants in javascript file.
I am try these methods;
var CDNUrl = "<?php echo CDNUrl; ?>";
var CDNUrl = "{{ constant(\"CDNUrl\") }}";
what is the best way for access any variable or constant in javascrpt file??
Thanks.
Hi, I am try access my constants in javascript file.
I am try these methods;
var CDNUrl = "<?php echo CDNUrl; ?>";
var CDNUrl = "{{ constant(\"CDNUrl\") }}";
what is the best way for access any variable or constant in javascrpt file??
Thanks.