Pages

Wednesday, September 16, 2015

Magento2: Getting error in step 6 at Installation

When we import the table at the magento setup , we got the below error “Installation is incomplete. ”   Solution of magento 2 installation is incomplete error: just put the code in .htaccess file

<IfModule mod_php5.c>
php_value xdebug.max_nesting_level 500
</IfModule>

Magento2: Display static block in Phtml file & CMS page.

In Phtml File:
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('block_identifier')->toHtml();?>


in CMS Content:
{{block class="Magento\\Cms\\Block\\Block" block_id="block_identifier"}}


In Xml File:
<referenceContainer name="content">
  <block class="Magento\Cms\Block\Block" name="block_identifier">
<arguments>
<argument name="block_id" xsi:type="string">block_identifier</argument>
</arguments>
</block>
</referenceContainer>