0

I am trying to create a custom page with xml and phtml and I do not know the right way to do that.

1 Answer 1

0

These are two different files in Magento 2.

There are configuration files with extension .xml and template files with extension .phtml

You can see some of configuration files at Vendor/Module/etc/ and template files at Vendor/Module/view/frontend/template

Here is an example how to create an xml file

https://stackoverflow.com/a/32614680/10193644

Example for template file

https://magento.stackexchange.com/a/181719/67038

Good Luck

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.