Forums / Developer / declaration

declaration

Author Message

jb bianchi

Tuesday 09 August 2005 5:56:19 am

How can I declare an array in a let ?
{let array=array[] }

thank's

David Eriksson

Tuesday 09 August 2005 6:08:42 am

{def $myarray=array()}

Or, with the older syntax:

{let myarray=array()}

/David

jb bianchi

Tuesday 09 August 2005 6:14:16 am

thank's for your answer

eZ debug

Timing: Jan 20 2025 08:52:52
Script start
Timing: Jan 20 2025 08:52:52
Module start 'content'
Timing: Jan 20 2025 08:52:52
Module end 'content'
Timing: Jan 20 2025 08:52:52
Script end

Main resources:

Total runtime0.0155 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.7813180.8516
Module start 'content' 0.00690.0050 769.632893.8281
Module end 'content' 0.01190.0035 863.460970.7031
Script end 0.0155  934.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.0736120.0002
Check MTime0.00106.3255120.0001
Mysql Total
Database connection0.00116.815910.0011
Mysqli_queries0.002717.261040.0007
Looping result0.00000.110720.0000
Template Total0.003120.110.0031
Template load0.00074.551610.0007
Template processing0.002415.513310.0024
Override
Cache load0.00052.940610.0005
General
dbfile0.00042.8961100.0000
String conversion0.00000.050730.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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