0

I have an index file on my server and I am trying to get it to show the contents on my site by linking it on the homepage through the admin.

In Magento 1, I did it like this and it worked:

{{block type="core/template" template="/default/carousel/index.phtml"}}

How can I write this on Magento 2.0?

2

Try to use Magento\Framework\View\Element\Template

{{block class="Magento\\Framework\\View\\Element\\Template" template="Vendor_Module::default/carousel/index.phtml"}}

See more here: https://magento.stackexchange.com/a/95551/33057

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.