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?

2

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.