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