smarty assign to javascript external
Posted
by ruru
on Stack Overflow
See other posts from Stack Overflow
or by ruru
Published on 2010-05-04T02:29:53Z
Indexed on
2010/05/04
2:38 UTC
Read the original article
Hit count: 284
smarty
|JavaScript
hi folks,
here in index.tpl
here in javas.js
var currentTS = "{literal}{$userid}{/literal}";
alert(currentTS);
but there will be alert {literal}{$userid}{/literal}
not the $userid
.
any idea?
© Stack Overflow or respective owner