Re: Module Development: Possible to display a message on next page?
Posted: Wed Dec 12, 2007 4:16 am
Well.... there are some functions, like 'ShowMessage()' and 'ShowErrors()' that are useful for displaying semi-standardized messages in actions..... you just have to supply the text for them.
Here's what I normally do:
a) When calling Redirect($id,'defaultadmin',$returnid,$parms) I set a message into the parms array.
i.e:
Then in the defaultadmin action...
Here's what I normally do:
a) When calling Redirect($id,'defaultadmin',$returnid,$parms) I set a message into the parms array.
i.e:
Code: Select all
$parms = array();
$parms['message'] = $this->Lang('blah');
$this->Redirect($id,'defaultadmin',$returnid,$parms);
Code: Select all
if( isset($params['message']) )
{
echo $this->ShowMessage($params['message']);
}