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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:03:09
Script start
Timing: Jan 19 2025 01:03:09
Module start 'layout'
Timing: Jan 19 2025 01:03:09
Module start 'content'
Timing: Jan 19 2025 01:03:09
Module end 'content'
Timing: Jan 19 2025 01:03:09
Script end

Main resources:

Total runtime0.0300 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.1719152.6250
Module start 'layout' 0.00680.0040 741.796939.4453
Module start 'content' 0.01080.0170 781.242289.3672
Module end 'content' 0.02780.0022 870.609430.3047
Script end 0.0300  900.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00268.5794140.0002
Check MTime0.00113.6213140.0001
Mysql Total
Database connection0.00103.203010.0010
Mysqli_queries0.004314.232930.0014
Looping result0.00000.082610.0000
Template Total0.00165.410.0016
Template load0.00092.960110.0009
Template processing0.00072.464010.0007
Override
Cache load0.00061.951210.0006
General
dbfile0.00030.909780.0000
String conversion0.00000.033340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs