\Smarty_Internal_Method_AssignGlobal

Smarty Method AssignGlobal

Smarty::assignGlobal() method

Summary

Methods
Properties
Constants
assignGlobal()
$objMap
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$objMap

$objMap : integer

Valid for all objects

Type

integer

Methods

assignGlobal()

assignGlobal(\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty  $data, string  $varName, mixed  $value = null, boolean  $nocache = false) : \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty

assigns a global Smarty variable

Parameters

\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data
string $varName

the global variable name

mixed $value

the value to assign

boolean $nocache

if true any output of this variable will be not cached

Returns

\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty