how to pass param from one php page to another?

Author Message

Avishek Chakraborty

Wednesday 20 June 2007 3:22:13 am

I am trying to redirect certain input parameters from a php page which I have put inside the require clause in index.php to another php page. I am finding it difficult to do as the parameters are not getting redirected whereas the page is getting evoked on form submission.
Please help me

/dev/null

Thursday 21 June 2007 12:27:14 am

Avishek,

What your trying to do is clearly a <i>gross</i> hacking of eZ publish, not working and clearly should not be supported.

I would urge you to learn from existing code how to create an module extension from existing examples publicly available.

Take a look at the contributions, pubsvn and projects

http://ez.no/community/contribs
http://pubsvn.ez.no/community/trunk
http://projects.ez.no/

Here is a simple example of a module extension. http://pubsvn.ez.no/community/trunk/extension/redirect/

But do not continue to persist in pushing this pointless question to the top of the forum list on the homepage any further.

<i>/dev/null

Heiroglyphics - At The Helm ....</i>

eZpedia community documentation project: http://ezpedia.org

André R.

Thursday 21 June 2007 1:48:21 am

As pointed out above, eZ Publish has it's own set of functionality to redirect pages.
This is something you control from your extension module/view php code.

More on modules and views:
http://ez.no/doc/ez_publish/technical_manual/3_9/concepts_and_basics/modules_and_views

Urls in eZ Publish:
http://ez.no/doc/ez_publish/technical_manual/3_9/concepts_and_basics/url_translation

Relevant if this is a content/view page:
One other thing is that since eZ Publish supports nice urls, it has it own set of GET parameters support.
So instead of:
http://somepage.com/me/sparetime?day=friday&type=social
You have:
http://somepage.com/me/sparetime/(day)/friday/(type)/social

There are several advantages to this:
* Google will index the various urls as separate pages (as long as the content differs, Google sense this)
* eZ Publish's view cache handling will handle the cache correctly for you
* template variables for the params will automatically be created for you
for the above two params: {$view_parameters.day} and {$view_parameters.type}

Relevant if this is custom php code:
In ez publish own content modul, action view, there is a lot of examples on redirects and redirect codes:
http://pubsvn.ez.no/nextgen/trunk/kernel/content/action.php
For a extension example:
http://zev.ez.no/svn/extensions/ezdhtml/trunk/modules/ezdhtml/
module.php is the file defining the modul, and the rest is the vews.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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

Main resources:

Total runtime0.8291 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.0056 589.4766152.6406
Module start 'layout' 0.00560.0033 742.117239.4766
Module start 'content' 0.00890.8186 781.5938589.9609
Module end 'content' 0.82750.0015 1,371.554712.1250
Script end 0.8291  1,383.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4165160.0002
Check MTime0.00140.1695160.0001
Mysql Total
Database connection0.00050.062610.0005
Mysqli_queries0.774493.3964590.0131
Looping result0.00060.0675570.0000
Template Total0.794495.820.3972
Template load0.00230.273220.0011
Template processing0.792195.538020.3961
Template load and register function0.00020.018610.0002
states
state_id_array0.00110.130910.0011
state_identifier_array0.00150.182320.0008
Override
Cache load0.00190.2338430.0000
Sytem overhead
Fetch class attribute can translate value0.00050.061030.0002
Fetch class attribute name0.00090.109350.0002
XML
Image XML parsing0.00110.133430.0004
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00090.1081230.0000
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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/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: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs