Set-block & array

Author Message

Fabien Mas

Wednesday 12 March 2008 9:50:10 am

Hi,
In a template file, I would like to put an array in a 'set-block'

 
{set-block scope=root variable=email_cc_receivers}{$tab_add}{/set-block}	

but in kernel\content\collectinformation.php my $ccReceivers varaible is the string 'array'

How can I do to have an array in collectinformation.php ?

thx

Fabien Mas

Wednesday 12 March 2008 10:01:16 am

solved

{foreach $tab_add as $add}
	{append-block scope=root variable=email_cc_receivers}{$add}{/append-block}
{/foreach}

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 31 2025 08:11:18
Script start
Timing: Jan 31 2025 08:11:18
Module start 'layout'
Timing: Jan 31 2025 08:11:19
Module start 'content'
Timing: Jan 31 2025 08:11:19
Module end 'content'
Timing: Jan 31 2025 08:11:19
Script end

Main resources:

Total runtime0.0167 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.0078151.1953
Module start 'layout' 0.00600.0029 739.203136.6172
Module start 'content' 0.00890.0062 775.820390.1406
Module end 'content' 0.01520.0015 865.960929.9922
Script end 0.0166  895.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002213.4840140.0002
Check MTime0.00116.3028140.0001
Mysql Total
Database connection0.00084.819010.0008
Mysqli_queries0.002515.027930.0008
Looping result0.00000.143110.0000
Template Total0.00106.210.0010
Template load0.00084.561510.0008
Template processing0.00031.649710.0003
Override
Cache load0.00052.994710.0005
General
dbfile0.002112.800180.0003
String conversion0.00000.060140.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