{assign var='icon' value=','|explode:"dir,doc,exe"} // This works in Smarty v3: {$system=['freebsd','windows','macosx','linux']} // http://stackoverflow.com/questions/2244319/how-to-assign-an-array-within-a-smarty-template-file