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 answers

i 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

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -