Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs for page function.pnconfiggetvar.php

Procedural File: function.pnconfiggetvar.php

Source Location: /pnRender/plugins/function.pnconfiggetvar.php

Classes:



Page Details:

Zikula Application Framework



Tags:

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








smarty_function_pnconfiggetvar [line 39]

string smarty_function_pnconfiggetvar( array $params, object &$smarty, bool $html, string $assign, string $default)

Smarty function to get configuration variable

This function obtains a configuration variable from the Zikula system.

Note that the results should be handled by the pnvarprepfordisplay or the pnvarprephtmldisplay modifier before being displayed.

Available parameters:

  • name: The name of the config variable to obtain
  • assign: If set, the results are assigned to the corresponding variable instead of printed out
Example Welcome to <!--[pnconfiggetvar name="sitename"]-->!




Tags:

return:  the value of the last status message posted, or void if no status message exists
author:  Andreas Stratmann
since:  03/05/19


Parameters

array   $params   All attributes passed to this function from the template
object   &$smarty   Reference to the Smarty object
bool   $html   (optional) If true then result will be treated as html content
string   $assign   (optional) If set then result will be assigned to this template variable
string   $default   (optional) The default value to return if the config variable is not set
[ Top ]


Packages:

Files:

Classes: