Created
May 10, 2017 18:24
-
-
Save cagartner/bb3043785bce733c8d61749b234f48e6 to your computer and use it in GitHub Desktop.
Magento 2 como adicionar bloco estático
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('bloco_id')->toHtml();?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<referenceContainer name="footer"> | |
<block class="Magento\Cms\Block\Block" name="test"> | |
<arguments> | |
<argument name="block_id" xsi:type="string">bloco_id</argument> | |
</arguments> | |
</block> | |
</referenceContainer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment