$_SERVER['REQUEST_URI'] in ez template

Author Message

edwige fontenay

Monday 12 April 2010 8:58:36 am

Hi everybody,

I try to find a template variable equivalent of $_SERVER['REQUEST_URI'].

I have already look at {$uri_string} but this variable is only available in layout.tpl and not in the other tpl.

Moreover, {$uri_string} not contain parameters arguments.

I've just read a little post on autoload extension to add more functionality to template.

Maybe, I can use this way to write a $_SERVER['REQUEST_URI'] equivalent.

Someone has a better idea ?

Thanks for your help.

Edwige.

Nicolas Pastorino

Tuesday 13 April 2010 3:19:20 am

Hello Edwige,

Could you provide us with some context information : what would you like to achieve ?
There may be other ways to achieve this which have not popped-up in your mind (yet ;) ).

Let us know,
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

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

Main resources:

Total runtime0.0208 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.0065 589.0313152.6250
Module start 'layout' 0.00650.0033 741.656339.4453
Module start 'content' 0.00980.0082 781.101689.3047
Module end 'content' 0.01810.0027 870.406330.3047
Script end 0.0208  900.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002913.9168140.0002
Check MTime0.00115.2949140.0001
Mysql Total
Database connection0.00136.079710.0013
Mysqli_queries0.002914.037030.0010
Looping result0.00000.067510.0000
Template Total0.002110.310.0021
Template load0.00115.124410.0011
Template processing0.00115.115310.0011
Override
Cache load0.00083.666810.0008
General
dbfile0.00125.846380.0002
String conversion0.00000.034340.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