create a new admin user. bin/magento admin:user:create –admin-user=admin –admin-password=newpass123 –admin-email=admin@example.com –admin-firstname=John –admin-lastname=Doe Clear Cache: bin/magento cache:clean bin/magento admin:user:create –admin-user=admin12 –admin-password=admin@12 –admin-email=admin@example.com –admin-firstname=Jerin –admin-lastname=m
Author: Jerin
data-bind attribute
The data-bind attribute in HTML is used in various JavaScript frameworks, libraries, and tools to establish data binding between the user interface (HTML elements) and the underlying data or behavior (JavaScript code). Different libraries may offer slightly different syntax and capabilities for data binding. Here are some common types of data-binding expressions you might encounter:… Continue reading data-bind attribute
InstallSchema and InstallData
In Magento 2, both InstallSchema and InstallData are used to set up the database schema and initial data for your custom module during installation. However, they serve slightly different purposes: InstallSchema:The InstallSchema script is used to define and modify the database schema, including creating new tables or modifying existing ones. It runs only once during… Continue reading InstallSchema and InstallData
setup_version
The setup_version attribute in the module.xml file specifies the version number of your module. This version number is used to track the current version of your module’s database schema and data. setup_version=”1.0.1″. This means that the current version of your module is 1.0.1. When you make changes to your module’s database schema, such as adding… Continue reading setup_version
Document Object Model
In web development, when a browser loads a web page, it processes the HTML and creates a Document Object Model (DOM) representation of the page’s structure. This DOM includes all the elements on the page, their properties, and their relationships to each other. JavaScript can interact with the DOM to add interactivity and dynamic behavior… Continue reading Document Object Model
filter property in CSS
The filter property in CSS is used to apply graphical effects and transformations to an element’s rendering. It allows you to modify the appearance of elements, such as images and background images, without the need for complex image editing. The filter property supports a variety of filter functions that can be combined to create various… Continue reading filter property in CSS
The Scroll event listener in JavaScript
The Scroll event listener in JavaScript is a built-in event handler that allows you to detect and respond to scrolling actions performed by the user on a webpage. This event is triggered whenever the user scrolls the page, either by using the mouse scroll wheel, touchpad gestures, arrow keys, or any other method of scrolling.… Continue reading The Scroll event listener in JavaScript
How to dump Database.
Exporting from MySQL The best tool for exporting a MySQL database to a text file is mysqldump. To use mysqldump, you will need to know the login credentials of an appropriate MySQL user that has the necessary privileges to export the database . mysqldump -u root -p corp > /home/jandj/Pictures/db_dump.sql
Transform: translate Property.
In HTML, you can use CSS to apply transformations to elements, including translating along the x and y axes. The CSS property you would use is called transform, specifically the translate() function. Here’s an example: htmlCopy code<style> .my-element { transform: translate(20px, 30px); } </style> <div class=”my-element”> This element has been translated. </div> In the example… Continue reading Transform: translate Property.
Magento CMS – FAQs
1. What is Magento CMS? With a plethora of built-in CMS features, Magento makes itself a giants in terms of content capabilities. With effective SEO, high website performance, content-optimized themes and extensions, Magento CMS can bring e-merchants to the next level of controlling website content! 2. Is Magento good for CMS? Yes, definitely! With excellent… Continue reading Magento CMS – FAQs