1

What is the proper way of passing variables from Joomla backend to javascript (frontend)? I have found examples simply setting the variables in templates like:

<script type="text/javascript">
var someVar = <?php echo $some_php_var ?>
</script>

Is there any other "standard" way of doing this?

Browse other questions tagged or ask your own question.