Magento 2
The block instance is passed to the «*.phtml» templates as $block variable, not $this
Development
phtml
,
template
,
block
dmitrii_fediuk
(Dmitrii Fediuk)
December 14, 2015, 6:12am
2
See also:
How are the «
*.phtml
» templates rendered?
The built-in template engines
.
The comment for the \Magento\Framework\View\Element\Template::setTemplateContext() method is wrong
show post in topic