string smarty_insert_getstatusmsg(
$params $params, $smarty &$smarty)
|
|
Smarty insert function to dynamically get current status/error message
This function obtains the last status message posted for this session. The status message exists in one of two session variables: '_PNStatusMsg' for a status message, or '_PNErrorMsg' for an error message. If both a status and an error message exists then the error message is returned.
This is is a destructive function - it deletes the two session variables '_PNStatusMsg' and 'erorrmsg' during its operation.
Available parameters:
- assign: If set, the status message is assigned to the corresponding variable instead of printed out
- style, class: If set, the status message is being put in a div tag with the respective attributes
- tag: You can specify if you would like a span or a div tag
Example <!--[insert name="getstatusmsg"]--> <!--[insert name="getstatusmsg" style="color:red;"]--> <!--[insert name="getstatusmsg" class="statusmessage" tag="span"]-->
Parameters
| $params |
$params |
|
| $smarty |
&$smarty |
|