PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
create module URL
string pnModURL(modname, type, func, args);
pnModURL() creates a PostNuke-compatible URL for a specific module function.
The well-known name of a module for which to create the URL
The type of function for which to create the URL; currently one of 'user' or 'admin'
The actual module function for which to create the URL
An associative array of arguments. The exact number and type of arguments is function-dependent
This function returns a module URL string if successful. This function returns void if an exception was raised.
This function raises BAD_PARAM if you pass an invalid parameter.
For more information on well-known names of modules please refer to the documentation for pnModGetVar()
// Create a URL to the News 'view' function with parameters 'sid' set to 3
// and 'index' set to '0'
$url = pnModURL('News', 'user', 'view', array('sid' => 3, 'index' => 0));
Previous |
Next |