I'm wondering how I can include a .phtml file inside my cms block. I came across Magento directives which say to use the following:
{{block type="core/template" name="poop6" template="Magento_theme::test.phtml"}}
I imagine this would operate like my layouts xml where I do:
<block class="Magento\Framework\View\Element\Template" template="Magento_theme::test.phtml" />
I've found some very simple articles on the block directive, but none explicitly say where to store the file. I surmise that the "template" attribute works the same as the xml. In this case the test.phtml file is...
app/design/frontend/<theme_namespace>/<theme>/Magento_Theme/templates/test.phtml
Given that the xml <block>
example above works, does anyone know why my block directive is not working? Is there more involved for this to work?
Sidenote, none of the articles I found say the Magento version, mine is 2.1.2. Also, the content where my directive is remains empty on the front end, so I believe Magento is at least attempting to interpret it and failing silently (nothing in debug logs).