wich template calls eztemplatestringoperator?

Author Message

Alessandro Cipriani

Wednesday 10 March 2004 2:03:36 am

hi all
with the precious help of mark i resolved my problem of setting/retrieving session id, also by adding a new custom function to eztemplatestringoperator.php
now when i call this function from pagelayout.tpl i get the sessionId, but i don't get the same result by calling the function from another template, like mytemplate.tpl

example:
in pagelayout.tpl i call {"session_id"|session_variable} and i get "2e7885d9d819f22ebe467fb3cbdd9ebd"

in mytemplate.tmp i call the same function and i get "session_id"... I think the function isn't executed because the template doesn't find it... right?

any hint?
best regards
alessandro

Alessandro Cipriani

Wednesday 10 March 2004 2:35:01 am

excuse me, i got to correct myself:

i called the upcase function either from pagelayout.tpl and mytemplate.tpl and it works... so it's a problem of my own function

but why does it work in pagelayout and not in mytemplate.tpl?

in index.php i set the session id in this way:
$http =& eZHTTPTool::instance();
$http->setSessionVariable( "session_id", session_id() );
then i call my function, but when i call it from mytemplate doesn't work, while from pagelayout it works perfectly...

alessandro

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 19 2025 11:37:16
Script start
Timing: Jan 19 2025 11:37:16
Module start 'layout'
Timing: Jan 19 2025 11:37:16
Module start 'content'
Timing: Jan 19 2025 11:37:17
Module end 'content'
Timing: Jan 19 2025 11:37:17
Script end

Main resources:

Total runtime1.0581 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.2891152.6406
Module start 'layout' 0.00660.0033 741.929739.4766
Module start 'content' 0.00991.0468 781.4063462.9297
Module end 'content' 1.05670.0014 1,244.33598.1250
Script end 1.0580  1,252.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3697160.0002
Check MTime0.00170.1625160.0001
Mysql Total
Database connection0.00090.088210.0009
Mysqli_queries0.997994.3153520.0192
Looping result0.00070.0621500.0000
Template Total1.008495.320.5042
Template load0.00220.208220.0011
Template processing1.006295.094220.5031
Template load and register function0.00010.011910.0001
states
state_id_array0.00230.213810.0023
state_identifier_array0.00190.178020.0009
Override
Cache load0.00190.1807230.0001
Sytem overhead
Fetch class attribute can translate value0.00130.124710.0013
Fetch class attribute name0.00240.223630.0008
XML
Image XML parsing0.00080.071710.0008
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00740.6973160.0005
String conversion0.00000.000940.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.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs