stenik / module-custom-var-accessor
Provides the ability to access custom var from every phtml template.
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 6
Forks: 1
Open Issues: 1
Type:magento2-module
Requires
- php: ~5.6.3|~7.0.0|~7.1.0|~7.2.0
This package is auto-updated.
Last update: 2024-10-29 05:34:29 UTC
README
Stenik\CustomVarAccessor module provides the ability to access custom var from every phtml template.
To fetch custom variable in template use:
<? $block->getVar($varCode, 'customVarName'); ?>
to fetch custom variable's name or
<? $block->getVar($varCode, 'customVarText'); ?>
to fetch custom variable's plain value or
<? $block->getVar($varCode, 'customVarHtml'); ?>
to fetch custom variable's html value
where $vatCode is the custom var's code