Skip to main content
cleared typos -- remove thanks, add a question
Source Link
sarnold
  • 104.5k
  • 23
  • 187
  • 243

I write PHP inside JS in the following way

alert(<?php echo __("Error-login") ?>); 

echo__("Error-login") correlates with an xml to translate in two languages ​​with symfony

 , but now it does not work.

Thanks in advanceHow do I fix this?

I write PHP inside JS in the following way

alert(<?php echo __("Error-login") ?>); 

echo__("Error-login") correlates with an xml to translate in two languages ​​with symfony

  but now it does not work.

Thanks in advance

I write PHP inside JS in the following way

alert(<?php echo __("Error-login") ?>);

echo__("Error-login") correlates with an xml to translate in two languages ​​with symfony, but now it does not work.

How do I fix this?

I write PHP inside JS in thisthe following way

alert(<?php echo __("Error-login") ?>); 

echo__("Error-login") thisecho__("Error-login") correlates with an xml to translate in two languages ​​with symfony

but now I doit does not work. thanks for the advice

Thanks in advance

I write in this way

alert(<?php echo __("Error-login") ?>); 

echo__("Error-login") this correlates with an xml to translate in two languages ​​with symfony

but now I do not work. thanks for the advice

I write PHP inside JS in the following way

alert(<?php echo __("Error-login") ?>); 

echo__("Error-login") correlates with an xml to translate in two languages ​​with symfony

but now it does not work.

Thanks in advance

Source Link
Simon
  • 37
  • 2
  • 6

write php inside javascript alert

I write in this way

alert(<?php echo __("Error-login") ?>); 

echo__("Error-login") this correlates with an xml to translate in two languages ​​with symfony

but now I do not work. thanks for the advice