Magento2 basic interview questions and answers.
The Differences
Between Magento 1 and Magento 2
Magento1 :
API Added Retroactively
Flexible Architecture
No Front-end Library
Legacy PHP
No Support for HTML5/CSS3
Weak Content Staging
Full Page Cache (EE)
JS – Prototype
Legacy Checkout
Magento2 :
API is Core to the technology
New Architecture for Speed
Ships with LESS
PHP5.6+ / 7.0
Native Support HTML5/CSS3
Advanced Content Staging
FPC (EE)/Varnish
JS – Jquery
Streamlined Checkout Process
Which command is used
to enable or disable a magento2 module ?
php bin/magento module:enable
NameSpace_ModuleName
php bin/magento module:disable
NameSpace_ModuleName
Which files are
necessary to install – upgrade database tables and to records in it?
Normally, there are four files for
this listed below
1.InstallSchema
2.UpgradeSchema
3.InstallData
4.UpgradeData
What are the
recommended steps to be followed before Magento2 programming?
Before development starts, disable
whole cache.
Set Development mode
as SetEnv MAGE_MODE developer in .htacces or run the command php
bin/magento deploy:mode:set
developer
Which file is
responsible for keeping database credentials in Magento2?
env.php situated at app/etc/ folder
Which file stores the
vendor path?
Its vendor_path.php situated at
app/etc/ folder.
Which class Magento 2
helper extend?
\Magento\Framework\App\Helper\AbstractHelper
Which function refers
the action in any controller file?
Its execute() function
What is the
difference between cache:clean and cache:flush?
Typically, cache:clean deletes all
enabled cache related to magento whereas cache:flush deletes the whole cache
storage, whether its magento cache or any third party cache (whether enabled or
disabled)
What is resource
attribute for admin menu item?
resource attribute defines the ACL
rule, that a user must have in order to access this Menu Item
Where does all core
modules are located in Magento2?
They are under vendor/magento
folder.
Where are the module’s
base definition file?
They are at
app/code/Module/etc/module.xml.
Comments
Post a Comment