2015 in review

The WordPress.com stats helper monkeys prepared a 2015 annual report for this blog.

Here’s an excerpt:

A New York City subway train holds 1,200 people. This blog was viewed about 6,600 times in 2015. If it were a NYC subway train, it would take about 6 trips to carry that many people.

Click here to see the complete report.

Magento 2 Module Creator

I hope many of you have now idea about Magento 2 installation and Magento 2 Directory structure. Also i hope you have tried to create Magento 2 custom module like one i have created https://github.com/darshanb87/magento2-extension-example.
Continue reading “Magento 2 Module Creator”

Magento 2 custom Log

Magento 2 is using Zend framework 2 as its core library which comes with 8 different types of logs.

To print log you just need to use any of this below method in your block, helper or model class file.
Continue reading “Magento 2 custom Log”

Magento 2 Custom Module

Hi Friends, Here i would like to share with you custom module/extension of Magento 2 which i have created few days back.

I analyze the code of Magento 2.0.2 and created one sample module “Magentostudy_News” by taking reference of Cms, Customer and Sales module of core Magento 2. Continue reading “Magento 2 Custom Module”

How to Run Magento 2 using pub/index.php file

Magento 2 comes with two index.php files where one file is inside root folder and another one is inside /pub folder. Magento 2 offers to run your application using any one of this file. If you choose to run your application using /pub/index.php then it is a good decision for security point of view as it restrict unauthorized direct access of application files.

Here i will show you how to configure Magento 2 in localhost using pub/index.php file by creating virtualhost. You can do the same by following below steps after installing Magento 2. Continue reading “How to Run Magento 2 using pub/index.php file”

Magento 2 Directory Structure

I have gone through the directories of Magento 2 and i found that directory structure has changed significantly. It is important to understand these difference between Magento 1.x and Magento 2. In this post i will describe significant changes of directory and file structure.

Root Folder Structure

First let’s compare root folder structure of Magento 1.x and Magento 2. There are major changes applied at root level. Very first thing you will identify is that some new folders are introduced and some of them are removed.

  • media and errors folder are moved to pub folder
  • skin and js folder are moved to pub/static folder. Now it is easy to maintain static content via CDN.
  • js, css, images are again divided into pub/static/adminhtml and pub/static/frontend for backend and frontend area respectively.
  • dev folder contains various tools for developers such as migration tools and tests. shell is moved to dev folder
  • downloader, includes and pkginfo folder are no more with magento 2.
  • setup directory is for installation process
  • get.php, cron.php and index.php files are moved to pub folder.

Continue reading “Magento 2 Directory Structure”

How to install Sample data in Magento 2

This post guide you on how to install Sample Data in Magento 2. For beginners in Magento it will be good if they study Magento Framework with Sample Data.

Magento 2 sample data uses the Luma theme to provide you with a sample storefront, products, customers, CMS pages, and so on. Using this sample data you will get the feel of a complete Magento storefront.

You can install sample data during Magento 2 installation or even after. I hope you have installed Magento 2 successfully in your system by reading Magento 2.0 Installation Guide.

To get sample data installed follow below steps: Continue reading “How to install Sample data in Magento 2”

Magento 2 Installation Guide

Magento 2 Developer Beta(0.42.0-beta6) is released on Magento git hub repository on 18th December, 2014. This Developer Beta release will be available upto March 2015. Magento 2 installation process is different then Magento 1.x versions so here i would like to share with you Magento 2 Installation guide for windows system.

First of all verify that you have the correct prerequisites to install the Magento 2 software in your system. Make sure that your system meets the following requirements. Continue reading “Magento 2 Installation Guide”