Category: Systems and Frameworks

Magento 2: Call jQuery in a phtml

Magento 2: Call jQuery in a phtml

Sometimes you just want to use jQuery directly in your phtml file. However, since Magento 2 now uses requirejs, we can no longer simply call jQuery globally. The following snippet shows you how this works.

Magento 2: Read deploymentConfig

Magento 2: Read deploymentConfig

In Magento2 it is sometimes necessary to have several configuration entries which you want to set differently in your staging or development environment than in LIVE. You can solve the whole thing via the file app/etc/env.php. Fill in your Config here first of all, what you need. I’ve listed what this might look like. In […]