More often than not, we take things for granted. If something is working as expected, we don’t bother about the inner workings of it to understand the underlying mechanism. Or to put it another way, we don’t dig into something until we’re in some sort of trouble!
Today, we’ll go through the concept of controllers in OpenCart 2.x. With the release of OpenCart 2.x version, they’ve introduced framework changes that require an upgrade if you’ve made any custom modules in the earlier version—OpenCart 1.x. We’ll walk through a practical example of what we’ll call Guestbook in this tutorial.
Almost every framework nowadays has built-in support of Composer, an awesome dependency management tool in PHP, and OpenCart is no exception. In this tutorial, you’ll learn how to use Composer to integrate external libraries in OpenCart.