How To

Zyxware default image3
| 1 min read
We can install the latest version of drupal9 using the following command. composer create-project drupal/recommended-project my_site_name_dir This will create a project in 'my_site_name_dir' and automatically execute composer install to download the latest stable version of Drupal and all its dependencies. Your 'my_site_name_dir' will contain files that should be outside of your web root and not accessible by the web server. The web root will be 'my_site_name_dir/web'.
Zyxware default image3
| 2 min read
Actually, we can't install an incompatible module with the composer and apply a compatibility patch afterward. However, since issue forks are branches it's possible to install the module using that branch.  Under the repositories section where the composer source is listed, we need to add an exclude key for our module that we're trying to install using the issue fork. In the following example trying to install an issue for the homebox module. Complete repositories key look like  this now:
Zyxware default image1
| 2 min read
  We can use loadByProperties method in the \Drupal\Core\Entity\EntityStorageInterface.it will help us to search the file entity by the given file URI: /** @var \Drupal\file\FileInterface[] $files */ $files = \Drupal::entityTypeManager() ->getStorage('file') ->loadByProperties(['uri' => $uri]); /** @var \Drupal\file\FileInterface|null $file */ $file = reset($files) ?: NULL; In some other cases if you don't know the file URI    We can use the below code to get the URI:
The lure of starting an eCommerce business with little or no investment, enormous growth potential, and 24/7 operation each year draws so many people globally to venture into online business.
| 7 min read
The problem: HTML elements have inconsistent sizes across different browsers. The solution: Set box-sizing for all elements to border-box. A long-time bane for web developers, Internet Explorer did one thing right: It sized boxes properly. Other browsers only look at the content when calculating the width of an HTML element, with everything else treated as surplus. A width: 200px div, with 20px padding and a 2px border, renders as 242 pixels wide.
LOGOsArtboard 1 copy-8.png
| 2 min read
Webpack is an open-source JavaScript module bundler. It allows you to split your JavaScript into separate modules in development while letting you compile those modules into a single bundle in production.
Zyxware default image4
| 2 min read
Some of you might have seen this error message while trying to upgrade Mautic in your system: "[Symfony\Component\Debug\Exception\ClassNotFoundException] Attempted to load class "ZipArchive" from the global namespace. Did you forget a "use" statement?" while upgrading Mautic version.
Mautic Email Automation
To upgrade Mautic to the latest Mautic 4.0.0 version, We will need to first update the present Mautic version 3.3.3 to Mautic 3.3.4 version, which is the stable version before the Mautic 4.0.0 version. It is always recommended to upgrade the Mautic version through the command line. Let us see the commands to upgrade the Mautic version. From the document root of mautic, we will need to run the below command to check whether any version upgrade is pending.
wget
| 1 min read
Wget is a command-line utility that helps download files from the web. It’s a non-interactive program that works in the background. We can use the wget commands as part of the cronjobs as well to do routine tasks. For example, if we want to download a sample.php file from a website ‘mywebsite.com”, we could use the command below to download the file