Friday 06 October 2006 10:46:30 am
Hi Daniel
Unless I understand you totally wrong this is exactly what view parameters are doing.
The only problem might be that you would have a view in your url, something like this: www.testing.com/mymodule/myview/parameter
Your view (which the module.php maps to an script) has access to $Params which contains the parameters.
To have ordered parameters you need to specify their name(s) in the module.php in your extension.
Example: $ViewList["main"] = array('script' => 'main.php', 'params' => array('rootNodeID'));
So I could call up the view main of my extension myextension like this: www.example.com/index.php/myextension/main/42 Here the view main calls up a script main.php which can access the passed value 42 by using $Params['rootNodeID']. The script main is a normal php file which is then responsible for calling a template or forwarding to another view. To access post variables you could use plain $_POST or, using the EZ tools:
include_once( "lib/ezutils/classes/ezhttptool.php" );
$http =& eZHTTPTool::instance();
else if ( $http->hasPostVariable( "foo" ) )
{
$foo= $http->postVariable( "foo);
}
Greetings from Luxembourg Claudia
|