Wednesday 25 May 2011 5:21:07 am - 1 reply

Introduction

I needed a PHP script to export the template output from a module ($module_result.content) to a file stored in the storage folder. Of course this could be achieved by curl or  get_file_output, but I wanted a script to generate the template output rather than fetching it.

» Read full blog post

Author Message

Nicolas Pastorino

Tuesday 31 May 2011 2:46:58 am

Hi Sebastiaan, thanks for this write-up.

Concise, and useful.

Out of curiosity, what was the use-case behind this ?

Cheers ! 

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

You must be logged in to post messages in this topic!

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

Main resources:

Total runtime0.1157 sec
Peak memory usage4,096.0000 KB
Database Queries61

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.1797152.6406
Module start 'layout' 0.00680.0029 741.820339.4844
Module start 'content' 0.00970.1043 781.3047597.2031
Module end 'content' 0.11400.0016 1,378.507814.3984
Script end 0.1156  1,392.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00423.6065160.0003
Check MTime0.00131.1463160.0001
Mysql Total
Database connection0.00121.050510.0012
Mysqli_queries0.058150.2015610.0010
Looping result0.00040.3844590.0000
Template Total0.080669.720.0403
Template load0.00312.716420.0016
Template processing0.077566.972420.0387
Template load and register function0.00010.090710.0001
states
state_id_array0.00161.364420.0008
state_identifier_array0.00151.340130.0005
Override
Cache load0.00262.2271100.0003
Sytem overhead
Fetch class attribute name0.00131.104030.0004
Fetch class attribute can translate value0.00100.825610.0010
class_abstraction
Instantiating content class attribute0.00000.006230.0000
XML
Image XML parsing0.00050.399510.0005
General
dbfile0.00080.6703160.0000
String conversion0.00000.006040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplforum_topic/full.tplextension/community_design/design/suncana/override/templates/forum_topic/full.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs