View
This helper class is used to extract basic variables
(scalar or array) from the global View
Facade.
View
Facade. class System\Helpers\View
You can register these global variables with View::share
.
View::share('siteName', 'Winter CMS');
Then available globally for use in the front-end and mail templates.
Properties
protected static $globalVarCache : array
Cache for global variables.
Methods
public static clearVarCache () : void
Clears the static cache for global variables.
Returns
void
public static getGlobalVars () : array
Returns shared view variables, this should be used for simple rendering cycles.
Such as content blocks and mail templates.
Returns
array
Copyright © 2024 Winter CMS