php - Create an array in smarty template? -
php - Create an array in smarty template? -
this question has reply here:
how assign array within smarty template file? 5 answersi need create new array other 1 dimensional array in smarty template. so, best possibilities create array in template file.
thanks, sachin
smarty3 allows {$var = ['foo' => 'bar', 'sub' => [1, 2, 3]]} , {$var.foo = 'other'}
if options don't suffice, write plugin function.
php smarty
Comments
Post a Comment