Set Session Variables From Templates

Author Message

chanaka jayasena

Tuesday 18 July 2006 11:29:02 pm

Can session variable set from the templates without going to the php code.

Ɓukasz Serwatka

Wednesday 19 July 2006 12:05:03 am

Hi,

This is not possible. See this topic for more information:
http://ez.no/community/forum/setup_design/how_to_set_a_session_variable/re_how_to_set_a_session_variable

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.6456 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 589.3438152.6250
Module start 'layout' 0.00870.0047 741.968839.4609
Module start 'content' 0.01340.6309 781.4297531.1016
Module end 'content' 0.64430.0013 1,312.53138.1563
Script end 0.6456  1,320.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4768160.0002
Check MTime0.00130.1974160.0001
Mysql Total
Database connection0.00190.289310.0019
Mysqli_queries0.602993.3846540.0112
Looping result0.00050.0787520.0000
Template Total0.609294.420.3046
Template load0.00250.388820.0013
Template processing0.606793.966620.3033
Template load and register function0.00010.017510.0001
states
state_id_array0.00110.166010.0011
state_identifier_array0.00130.196920.0006
Override
Cache load0.00200.3108100.0002
Sytem overhead
Fetch class attribute can translate value0.00050.073420.0002
Fetch class attribute name0.00140.214440.0003
XML
Image XML parsing0.00100.151020.0005
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00090.1336240.0000
String conversion0.00000.001740.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs