Timeline for Calling a custom phtml file in another phtml file, cms block, cms page, and XML layout in Magento 2
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 8, 2019 at 14:44 | comment | added | Mohammed Joraid | +1 Thank you. Very helpful. I tried to add a phtml in my custom theme and called it from Admin CMS block and it works fine. I had to change vars like {{media url=""}} to php variables because the get outputted as they are without getting parsed. PHP variables work fine to get the media path, but is there a standard way to use {{media url=...}} in phtml? | |
| Mar 6, 2018 at 11:21 | vote | accept | Arun Karnawat | ||
| Feb 5, 2018 at 7:48 | history | answered | Arun Karnawat | CC BY-SA 3.0 |