How can I get an array from ini file in template ?!

Author Message

Selmah Maxim

Monday 07 July 2003 8:03:02 am

Any1 know how ?

I wanna get the 'TranslationList' from site.ini as array in template, for language selection !

Paul Borgermans

Monday 07 July 2003 8:18:30 am

http://ez.no/developer/ez_publish_3/documentation/customization/templates/undocumented_template_functions_and_operators

i what you need

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Selmah Maxim

Tuesday 08 July 2003 12:40:14 am

Hi pual ..

I know this , but the 'TranslationList' is look like this :
TranslationList=en;hu;he;ar

when use the ezini i got just as it is, i need as array ...
but i had slove it from php ;)

thx anyway !

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 01:26:57
Script start
Timing: Jan 31 2025 01:26:57
Module start 'layout'
Timing: Jan 31 2025 01:26:57
Module start 'content'
Timing: Jan 31 2025 01:26:57
Module end 'content'
Timing: Jan 31 2025 01:26:57
Script end

Main resources:

Total runtime0.0257 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2813151.2266
Module start 'layout' 0.00540.0041 739.5078220.7188
Module start 'content' 0.00950.0146 960.2266997.8359
Module end 'content' 0.02400.0016 1,958.062529.9922
Script end 0.0256  1,988.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003212.3136140.0002
Check MTime0.00134.9470140.0001
Mysql Total
Database connection0.00072.829910.0007
Mysqli_queries0.00197.525330.0006
Looping result0.00000.058510.0000
Template Total0.00114.310.0011
Template load0.00093.332010.0009
Template processing0.00020.954110.0002
Override
Cache load0.00062.292510.0006
General
dbfile0.00031.179780.0000
String conversion0.00000.035340.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