开发者

smarty, send to file date

开发者 https://www.devze.com 2023-01-04 04:40 出处:网络
I have in a PHP file this arr开发者_开发问答ay: array(1, 2, 3); How can I send this array to a Smarty .tpl?$smartyobject->assign(\"varname\", array(1, 2, 3));

I have in a PHP file this arr开发者_开发问答ay:

array(1, 2, 3);

How can I send this array to a Smarty .tpl?


$smartyobject->assign("varname", array(1, 2, 3));

after this, you can access it as {$varname} (or whatever you set your delimiters to)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号