user319854
user319854

Reputation: 4116

smarty, send to file date

I have in a PHP file this array:

array(1, 2, 3);

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

Upvotes: 0

Views: 112

Answers (1)

Maerlyn
Maerlyn

Reputation: 34105

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

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

Upvotes: 2

Related Questions