print current user in templates

Author Message

Thomas Brandl

Wednesday 06 August 2003 1:09:27 am

Hy there,

since I still have my "anonymous has all rights but gains no access"-problem, I want to track the problem down.
I need to verify that the one visiting my site is truly "Anonymous" and that he belongs to the group he's supposed to. However I was not yet successfull with sth. like
{$current_user|attribute(show)} in templates...

So, what does the magic?

Thanks a lot!
Tom

Karsten Jennissen

Wednesday 06 August 2003 1:27:03 am

See
http://ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/fetching_current_user

Regards,
Karsten

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 11:28:29
Script start
Timing: Jan 18 2025 11:28:29
Module start 'layout'
Timing: Jan 18 2025 11:28:29
Module start 'content'
Timing: Jan 18 2025 11:28:30
Module end 'content'
Timing: Jan 18 2025 11:28:30
Script end

Main resources:

Total runtime0.7304 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.0067 587.9063152.6250
Module start 'layout' 0.00670.0030 740.531339.4453
Module start 'content' 0.00970.7188 779.9766459.8828
Module end 'content' 0.72850.0019 1,239.85948.1641
Script end 0.7304  1,248.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4711160.0002
Check MTime0.00140.1892160.0001
Mysql Total
Database connection0.00110.146210.0011
Mysqli_queries0.676992.6663540.0125
Looping result0.00050.0702520.0000
Template Total0.696295.320.3481
Template load0.00210.289620.0011
Template processing0.694195.021520.3470
Template load and register function0.00020.032310.0002
states
state_id_array0.00130.174010.0013
state_identifier_array0.00140.187720.0007
Override
Cache load0.00170.2375150.0001
Sytem overhead
Fetch class attribute can translate value0.00100.141620.0005
Fetch class attribute name0.00140.185120.0007
XML
Image XML parsing0.00030.036020.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00070.0949100.0001
String conversion0.00000.001140.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 13
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs