i am new to magento & using magento 2 . I have to run a php code in my cms page . When i check the website i can understand that the theme is Alothemes Bencher6 . So what i did is
app/design/frontend/Alothemes/bencher6/Magento_Theme/templates
i create a new folder called myphp and file myphpcode.phtml insidethis folder .
So
app/design/frontend/Alothemes/bencher6/Magento_Theme/templates
there is two folder
- html (this folder is there previously)
- myphp (my custom folder )
in myphpcode.phtml i write the following code
<?php echo 'hiiiiiiiiiiii' ; ?>
Now i created a new page in magento and write the following code in content section
<block type="core/template" name="myphpcode" template="myphp/myphpcode.phtml" />
But for some reason this code is not working . I clear the cache . But still same . Please help