Best practice on extracting URL params

Author Message

Eirik Alfstad Johansen

Tuesday 20 April 2004 1:11:58 am

Hi guys,

What are your best practices on extracting URL parameters (while we're waiting for 3.4). I'm hoping to accomplish this without creating a separate view or modifying the kernel.

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Dominik Pich

Thursday 22 April 2004 12:34:03 am

regular expressions!? ez does this sometimes...

Eirik Alfstad Johansen

Thursday 22 April 2004 1:00:29 am

Hi Dominik,

Thanks for the suggestion. As it turns out, I created a module extension with a separate view. This only took about half an hour, and works like a charm. Really looking forward to param fetching functionality in 3.4, though.

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Silke Fox

Thursday 22 April 2004 6:27:36 am

I needed that feature too and decided to merge it from 3.4 alpha back to 3.3-3.
Yes, I had to change the kernel files, but it works fine for me and will probably work with a "clean" 3.4 as well.
Let me know if someone is interested in this hack and I'll provide a patch for it.

Silke

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

Main resources:

Total runtime0.6793 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.2734152.6406
Module start 'layout' 0.00680.0031 741.914139.4609
Module start 'content' 0.00990.6680 781.3750573.0781
Module end 'content' 0.67790.0013 1,354.453112.1563
Script end 0.6792  1,366.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5334160.0002
Check MTime0.00160.2286160.0001
Mysql Total
Database connection0.00120.174810.0012
Mysqli_queries0.628092.4514620.0101
Looping result0.00060.0817600.0000
Template Total0.648795.520.3244
Template load0.00210.308720.0010
Template processing0.646695.196320.3233
Template load and register function0.00010.011810.0001
states
state_id_array0.00110.162410.0011
state_identifier_array0.00130.196820.0007
Override
Cache load0.00180.2592220.0001
Sytem overhead
Fetch class attribute can translate value0.00080.114630.0003
Fetch class attribute name0.00120.183550.0002
XML
Image XML parsing0.00070.107230.0002
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00090.1286160.0001
String conversion0.00000.001040.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
4content/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
2content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs