Thread
:
php scripts, java script and smarty
View Single Post
#
2
03-10-2008, 12:23 AM
Yurij
Banned
X-Adept
Join Date: Jan 2008
Posts: 486
Re: php scripts, java script and smarty
Sure it's easy.
Pass in the "TPL" data for the out, and he shows them.
PHP code:
PHP Code:
$test
=
"la-la-la"
;
$smarty
->
assign
(
"test"
,
$test
);
TPL code (with Javascript):
PHP Code:
{
$test
}
<
script
>
alert
(
"
{
$test
}
"
)</
script
>
Yurij
View Public Profile
Find all posts by Yurij