Learn magento2 from magento1 in one hour

Learn magento2

Hi friends, before few months mangento launched the magento 2. We all know magento was the great platform in ecommerce compare to other frameworks. It’s a time for us to learn magento2. Due to the heavy dynamic complex system of magento facing some disadvantages like page loading efficiency etc. so merchants used some caches like full page cache, varnish cache to improve it. Of course a lot of developers 😉 affected with this complex configuration caches. To overcome this feature magento2 introduced the inbuilt full page cache in its system. The performance of magento 2 was very great compared to magento 1.x series. Also the default look and feel was too good when comparing with magento 1.x series. To know more about magento 2 features visit here.

One of the disappointment for developers was magento 2 module structures changed a lot compared to magento 1.x. Here I will summarize and step you some of the important magento2 coding structure changes.

Learn magento2 installation

Before installing magento 2, the prerequisites server configuation are here. Then in two method of installation(Simple and advanced) I did easy installation with setup wizard. I would prefer you to install both magento2 and magento2sample separately. In the first step of installation the magento2 will list you the services need to enable in server. The issue, I faced in the magento2sameple data installation was,

 Fatal error: Maximum function nesting level of '100' reached, aborting!

This error can be fixed by adding the line

 ini_set('xdebug.max_nesting_level', 200);

in your {magento2sample root directory}/setup/index.php file.

Magento 2 reinstallation

In any case you may get the situation to reinstall the magento again. In magento 1.x, you can simply do that by removing/renaming your app/etc/local.xml file. By doing this magento will lost the db connection settings so it will move to installation wizard again. But in magento 2 this case get vary, there is no local.xml file in app/etc/ directory. You have to remove the following three things for magento 2 reinstallation.

  • Remove – var/generation folder
  • remove – app/etc/config.php
  • remove – app/etc/env.php

Magento 2 index management

To reindex all settings in magento user this command in command prompt or terminal

 php bin/magento indexer:reindex

To reindex specific settings in magento 2 use in the command

  php bin/magento indexer:reindex indexer_name

The important topics to learn in magento2 which will be frequently useful for development

In the every above article I have differentiated the magento2 codings from magento1.x for your clear understandings

Leave a Reply

Your email address will not be published. Required fields are marked *