Skip to content

How to use the code in external file/script in Magento 2

Today, we will guide you can how to use the code in the external file/script in Magento 2. The external file can be inside the Magento root folder or outside of it.

Let’s create a new file in the root folder of Magento 2 projects. In my case it’s test.php

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Share via
Copy link
Powered by Social Snap