Forums / General / Error: eZTemplate:set on {set $day_array....}

Error: eZTemplate:set on {set $day_array....}

Author Message

André R.

Monday 16 January 2006 10:34:14 am

Error:

parser error @ design/sbio/override/templates/full/aktivitet131.tpl:51
Empty variable name at [[$counter] = "1"]

code:

{def $day_array = array("0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0")}
{for 7 to 9 as $counter}
{set $day_array[$counter] = "1"}
{/for}

How do I set array values ??

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom