Author: admin

How Magento 2 Pub folder work

How Magento 2 Pub folder work

The Magento app is served from /var/www/html/magento2/pub. The rest of the Magento file system is vulnerable because it is accessible from a browser. Setting the webroot to the pub/ directory prevents site visitors from accessing the Web…

How Magento 2 custom module load

Assume you have a component that needs a configuration file from another component: Component B introduces gadgetlayout.xml, which updates block gadgetBlock from component A. In this case, layout files from component A should be loaded before component B, so you should specify…

Back to top