There may be situation when you are developing a Project, you may need to call a custome phtml file in
- another phtml file
- cms page
- cms block (static block)
- xml layout
How to do it ?
layoutmagento2phtmlview
There may be situation when you are developing a Project, you may need to call a custome phtml file in
How to do it ?
Best Answer
For the Example purpose we use below custom file, we want to include
Calling in phtml file
or alternatively
Calling in CMS page and block
Calling in CMS page and block is exactly same
Calling in XML layout