There are many systems in PHP that follows MVC (Model-View-Controller) architecture. It is a robust design pattern that separates data access, business logic and user interface code. A typical MVC concept, Model: consists of application data and business rules. It communicates with the database get the information. In Magento, we have these files under “Model” […]
In magento by default currency selector renders in right side bar. To show it in the header is not a hard job. This blog will let you know about moving it to header of magento. First of all setup your desired currencies for your store from magento admin. Now create a new template file and […]
Creating a module which interact with a database table is quite simple. Most of the developers use magento module creator to create such a module. However, what if you want a module with multiple database tables. Following is the example of module with two database tables. Step 1. Create setup file of your custom module […]
Most people using JavaScript misunderstand the difference between ‘null’ and ‘undefined’. An unclear distinction between these two entities can lead to grave issues when using ‘null’ and ‘undefined’ in test cases. A variable is said to be ‘undefined’ if it has been declared, but no value has been given to it. Contrary to this, ‘null’ […]