Zikula_Template_Plugins
[ class tree: Zikula_Template_Plugins ] [ index: Zikula_Template_Plugins ] [ all elements ]

Procedural File: insert.getstatusmsg.php

Source Location: /system/pnRender/plugins/insert.getstatusmsg.php



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.themelist.php 24383 2008-06-12 14:15:02Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
filesource:  Source Code for this file
license:  GNU/GPL








smarty_insert_getstatusmsg [line 38]

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  
[ Top ]



Documentation generated on Fri, 18 Jul 2008 21:47:01 +0200 by phpDocumentor 1.4.1