I am new to Magento and have been reading all of the answers on how to add PHP to a Magento block or page. Seems that just adding doesn't work. I have seen answers like this
{{block type="core/template" name="my_distributors_block" template="page/distributors.phtml"}}
My challenge is trying to determine where to put the phtml file. I have tried putting it in a php directory off of root directory of the server like:
{{block type="core/template" template="**php/test.phtml**"}}
If I just want to add custom php
- What are the exact steps
- Is there any documentation that describes what each attribute means, that is what is
type, what isnameand what istemplate
Where does phtml files need to reside? Working with Magento 2