simulate header() call

Author Message

Andreas Adelsberger

Friday 26 January 2007 8:23:35 am

hi,

my paymentserver needs something like

header('Location: http://test.com/index.php?result=success');

but i want to call the approvePayment() which leads to contiueWorkflow() to go through the workflows.

my dirty workaround is calling
approvePayment()
and then
header('Location: http://test.com/index.php/mysite/shop/orderview/$orderID/?result=success');

so my question is can i simulate this header() call?

thanx

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

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 07:22:55
Script start
Timing: Jan 19 2025 07:22:55
Module start 'layout'
Timing: Jan 19 2025 07:22:55
Module start 'content'
Timing: Jan 19 2025 07:22:55
Module end 'content'
Timing: Jan 19 2025 07:22:55
Script end

Main resources:

Total runtime0.0149 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.0057 589.0547152.6094
Module start 'layout' 0.00570.0029 741.664139.4141
Module start 'content' 0.00860.0041 781.078185.3047
Module end 'content' 0.01270.0022 866.382830.3047
Script end 0.0149  896.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.9639140.0002
Check MTime0.00107.0334140.0001
Mysql Total
Database connection0.00075.011510.0007
Mysqli_queries0.002718.188930.0009
Looping result0.00000.121610.0000
Template Total0.001811.910.0018
Template load0.00096.172810.0009
Template processing0.00085.683310.0008
Override
Cache load0.00064.093410.0006
General
dbfile0.00031.804380.0000
String conversion0.00000.067240.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