Sunday, May 8, 2016

Magento2 Simple Hello World Extension helloworld.zip

Magento2 comes up with little changes as shown in following picture.

Magento 1 to 1.9 vs Magento2 differences.
Source: venustheme.com

From the tutorial here I have created a HelloWorld magento2 Module.

Everytime you develop an app, you can use this app as template or a starter app.

How to install this Sample Starter App in your machine

I am using Ubuntu with magento2. PHP 5.9 and all modules required during Magento2 Install.

Download Magento2 the Sample Extension

If you have the magento2 installed here /var/www/html/magento2

Then copy the extracted file into
/var/www/html/magento2/app/code




Make sure the /var/www/html/magento2/var directory has 777 Permission.

sudo chmod 777 -R /var/www/html/magento2/var

To Install the Magento2 Helloworld Extension run the following command in terminal

sudo php bin/magento setup:upgrade

OR

you can manually to it. Open /var/www/html/magento2/app/etc/config.php

Add 'Ras_HelloWorld' => 1,  line at the end.



Now Point your browser to this URL http://localhost/magento2/helloworld/index/index

Read the tutorial here

To Disable a Plugin

sudo php bin/magento module:disable -c -f Ras_HelloWord

Read more…