Module result after redirect

Author Message

Franck Grenier

Wednesday 16 December 2009 8:32:28 am

Hello,
I have created a module which checks a user answer. After this check, I would like the module to send the user back to the previous page with its result.

I have almost achieve it with "redirectionURI" method but the problem is that the parameters are sent through the URL.

How can I redirect my module with its result in post variable ?

$url = $Module->redirectionURI( 'content', 'view' , array($view_mode , $current_node_id) , null , $quizz_feedback);
$Module->redirectTo($url);

Developer at Open Wide

Gaetano Giunta

Wednesday 16 December 2009 3:15:53 pm

maybe you can save that data to session instead?

Principal Consultant International Business
Member of the Community Project Board

Nicolas Pastorino

Monday 25 January 2010 10:26:22 am

Hi Franck,

As Gaetano says, session might be the solution here, specially if you have large data to send back to the original page.
Did you manage to get this working in the end ?

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 03:06:06
Script start
Timing: Jan 18 2025 03:06:06
Module start 'layout'
Timing: Jan 18 2025 03:06:06
Module start 'content'
Timing: Jan 18 2025 03:06:07
Module end 'content'
Timing: Jan 18 2025 03:06:07
Script end

Main resources:

Total runtime0.6727 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.3438152.6250
Module start 'layout' 0.00480.0028 741.968839.4453
Module start 'content' 0.00750.6638 781.4141577.7500
Module end 'content' 0.67130.0013 1,359.164112.1641
Script end 0.6727  1,371.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4300160.0002
Check MTime0.00120.1721160.0001
Mysql Total
Database connection0.00060.096610.0006
Mysqli_queries0.630793.7465590.0107
Looping result0.00050.0697570.0000
Template Total0.645896.020.3229
Template load0.00170.247120.0008
Template processing0.644195.751420.3221
Template load and register function0.00010.017710.0001
states
state_id_array0.00080.112410.0008
state_identifier_array0.00100.153220.0005
Override
Cache load0.00140.2030190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.085830.0002
Fetch class attribute name0.00080.126150.0002
XML
Image XML parsing0.00090.126530.0003
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00090.1335220.0000
String conversion0.00000.001240.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs