How I can get a dump of every variable in a template?

Author Message

Deane Barker

Monday 29 December 2008 9:32:15 am

I want to know all the variables that have been assigned to the current template. Something like the "get_defined_vars" function in PHP.

Possible?

Kristof Coomans

Monday 29 December 2008 11:14:59 am

Hi Deane

There is an extension that provides such feature: http://projects.ez.no/show_variables

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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

Main resources:

Total runtime0.0183 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.0076 589.1563152.6406
Module start 'layout' 0.00760.0040 741.796939.4922
Module start 'content' 0.01160.0046 781.289189.2422
Module end 'content' 0.01630.0020 870.531330.3047
Script end 0.0183  900.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.7641140.0002
Check MTime0.00116.1028140.0001
Mysql Total
Database connection0.00158.417810.0015
Mysqli_queries0.004122.161130.0014
Looping result0.00000.087110.0000
Template Total0.00179.210.0017
Template load0.00084.268710.0008
Template processing0.00094.901710.0009
Override
Cache load0.00052.944210.0005
General
dbfile0.00031.453280.0000
String conversion0.00000.044240.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