September 2018
Beginner to intermediate
218 pages
4h 27m
English
To get a better understanding of the frontend area, we are going to build a very lightweight Magelicious_Jsco module, to serve as a playground for our JS component exploration.
To this point, we should already be pretty familiar with the flow of creating a new module. Assuming we have defined our basic registration.php, composer.json, and etc/module.xml files, we can start dealing with the specifics of our Magelicious_Jsco module.
Let's start by defining <MODULE_DIR>/etc/frontend/routes.xml, as follows:
<config> <router id="standard"> <route id="jsco" frontName="jsco"> <module name="Magelicious_Jsco"/> </route> </router></config>
We then create <MODULE_DIR>/Controller/Playground.php, as follows:
namespace Magelicious\Jsco\Controller; ...
Read now
Unlock full access