Forums / Developer / Module parameters / Comment48361
Bruce Morrison
Monday 30 July 2007 4:34:13 pm
Hi Julien
The "params" in the module.php definition refers to parameters that are passed in the URL not via a form.
Your definition allows for URLs of the form /modulename/modulego/[ContentNodeID]/[test] This will set the $Params values you require but I'm not sure that this is the easiest way to achieve what you are trying to do.
You are probably better off retrieving the form variables using the eZHTTPTool. class e.g.
include_once( "lib/ezutils/classes/ezhttptool.php" ); $http =& eZHTTPTool::instance(); $test=false; $ContentNodeID=false; if ( $http->hasPostVariable( 'ContentNodeID' ) ) $ContentNodeID=$http->postVariable( 'ContentNodeID' ); if ( $http->hasPostVariable( 'test' ) ) $test=$http->postVariable( 'test' );
See http://pubsvn.ez.no/doxygen/trunk/html/classeZHTTPTool.html
CheersBruce
My Blog: http://www.stuffandcontent.com/ Follow me on twitter: http://twitter.com/brucemorrison Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish