Controllers in Magento 2, like on other PHP MVC frameworks, are important part of Mvc flow. In Magento 2 there are lots of changes in controllers, for example; how they are structured and how they work compared with Magento 1. If you are familiar with Magento 1 controllers, then you know they can have multiple actions (class methods). In Magento 2 controllers have only one method (execute) that will be called by front controller. This article covers controller basics, matching flow, controller types (admin and frontend), changes on existing controllers, instructions to create custom controllers and an example how to create a few controllers.Read more
Newest edition of Developers Paradise will be held at Opatija, from 25th to 28th April of 2016, and it will be organized and hosted by, yours truly, Inchoo.Read more
We can say that routing in Magento is one of the most important parts. Complete application (Magento 2) flow depends on processing URL request and router classes which are responsible for matching and processing that requests. This article covers routers flow in Magento 2 and analyses some routers that come with default installation. Also it will be shown how to create one custom router. It will be mentioned how routers match action (Controller class), and more info about Controllers will be covered in a separated article.Read more
Magento 2 brings new default theme under the name “Luma”. Luma is a very clean, easy on the eyes and elegant theme that has adopted better usability practices than it’s predecessor, Magento 1 default “Madison Island” theme.
In this blog post I’ve prepared an overview of the main differences between these two themes and the crucial UX issues that were found in Beta version of Luma theme. As Magento 2 is still in the development phase, this article will be updated when some major changes occur.Read more
As you are probably aware of, Magento 2 will come with a brand new architecture and database design. To ease up upgrade process, Magento released official Data Migration Tool that will help developers migrate store data from Magento 1 to Magento 2.Read more
Delivering a top notch web shop is never easy.
Factors such as requirements or desires (because, there is a difference!) accompanied with resources, experience and dedication make for the challenge of creation. Choosing the right partner now, thanks to Magento, comes with a new set of factors which should be looked after. All of them are connected with Magento’s new baby – Magento 2.
Since we’ve seen a lot of questions connected with the before mentioned factors (probably due to the fact that Magento officially published the date of Magento 2 release and we are talking about 15th of November now), we’ve decided to tone down the tension with telling you all about “what to expect when you’re expecting”.Read more
When Marko Martinović started working at Inchoo, we asked him what he likes to do in his free time. Enthusiastically enough, he replied: ”I write some code.” That was a bit over two years ago. He has been a member of the Inchoo family since April 2013 and today, we talked about his new project – MageMeter. All that ”I write some code.” wasn’t only talk, he made a catalog of Magento and Magento2 benchmarks metered using official Performance Toolkit.
We couldn’t restrain ourselves from asking a few questions and getting more info on the subject.Read more
This is a revised article originally written in September 2014 when I started to play with Magento 2 for the first time. Since there were a lot of changes in Magento 2, this article also needed some refreshment. We will glance over the backend, and proceed with the development of a simple module. For this task, I picked up the payment gateway API integration. This relatively simple task will help us demonstrate some key changes in Magento 2.
More precisely, we will be focusing on implementation of Stripe payment gateway. Even though Stripe has a rich set of features, here we will be focusing only on most basic functionalities to get you started with Magento 2 extension development.Read more
In every development process you sometimes need to log variables or custom messages. Now, we will explain how to create a custom log. Magento 2 comes with built-in log facility which is based on Monolog library. You can find this package in the following location: “MAGENTO2_ROOT/vendor/monolog“.Read more
One of the biggest changes in Magento 2 is the usage of dependency injection design pattern. With this pattern, a lot has been changed inside codebase, and many new things have been introduced. In this article, I will try to explain the very basics of this design pattern, and its implementation in Magento 2 to help those who are beginners in the field of dependency injection.Read more
Although still in development phase, Magento 2 comes with a distinctive set of changed/improved frontend approaches compared to its predecessor Magento 1.X. The big difference is that frontend is now updated with newer technologies such as HTML5, CSS3 and jQuery.
There are also significant changes/improvements to overall layout manipulation, file structure and a brand new introduction to Magento UI library heavily based on LESS preprocessor with built in compiler.
One of the main goals besides performance and scalability was to serve RWD out of the box. In this article I’ll try to cover some of the main differences, dive into development and demonstrate some practical examples.Read more