Turns a comma-separated list into a Smarty array.
Article Topics: Smarty, Customization
(Required parameters in bold)
add
The list of items to add to the array
Any characters
Empty. Creates an empty array
add="one,two,three"
array
Name of array to create
Any valid Smarty array name
You must provide an argument
array="myarray"
assign_prefix
Prefix output variables with this word. (Click link for details)
Any valid Smarty variable name
None. (No prefix is used)
assign_prefix="myvar"
None. Creates the array set with the array parameter.
Last updated 2 years ago
Was this helpful?