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.