Check Given file is an archive or not using Magento 2 by Magento\Framework\Archive Class.
Archive class has a logic to verify the given file is an archive or not in Magento 2. Continue reading “How to verify File is Archive or not using Magento 2.”
3x Magento Master
Check Given file is an archive or not using Magento 2 by Magento\Framework\Archive Class.
Archive class has a logic to verify the given file is an archive or not in Magento 2. Continue reading “How to verify File is Archive or not using Magento 2.”
i18n folder in module useful for translation purpose in Magento 2 for multiple languages.
You can add a translated CSV file at the module or theme level under the i18n folder. The website has multiple languages and you want to translate the text to a specific locale of the store, you need to create a CSV file for respective language locale like en_US.csv, fr_FR.csv file. Continue reading “How to get i18n Directory path of a module using Magento 2?”
You can retrieve the full path of the Module’s static asset like Images, Javascript, or CSS file path using Magento 2.
If you want to get the full path of the view directory for the frontend or backend area, You need to use Magento\Framework\View\Asset\Repository class to achieve the task. Continue reading “How to Get Module’s view directory image or js full path using Magento 2?”