Forums / Developer / how to pass param from one php page to another?

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

eZ debug

Timing: Jan 18 2025 10:54:51
Script start
Timing: Jan 18 2025 10:54:51
Module start 'content'
Timing: Jan 18 2025 10:54:51
Module end 'content'
Timing: Jan 18 2025 10:54:51
Script end

Main resources:

Total runtime0.1598 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.2734180.8125
Module start 'content' 0.00660.0077 770.085997.9297
Module end 'content' 0.01430.1455 868.0156526.1250
Script end 0.1597  1,394.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00392.4108200.0002
Check MTime0.00140.8877200.0001
Mysql Total
Database connection0.00080.525010.0008
Mysqli_queries0.106866.84531410.0008
Looping result0.00130.82341390.0000
Template Total0.145090.810.1450
Template load0.00090.586310.0009
Template processing0.144190.168510.1441
Override
Cache load0.00070.416110.0007
Sytem overhead
Fetch class attribute can translate value0.00060.402410.0006
XML
Image XML parsing0.00030.167110.0003
General
dbfile0.00805.0252200.0004
String conversion0.00000.005130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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