Hi,
I have some variables stored in my config table. I want to set a global JavaScript variable from them. e.g.
$siteconf = new SiteConfig();
$pubKey = $siteconf->PublicKey;
NOW, I want to set a global JavaScript variable with $pubKey value.
How I can set that variable? How to call the variable in my JS files?
Thanks