You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
This topic covers the basic steps of creating a new module. Subsequent sections in this Developer's Guide explain how to verify your new module and how to use Composer to package and distribute the module.
Before you begin creating your new module, make sure that you have a working installation of Magento 2.0, and the Magento [System Requirements](http://://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html>System Requirements).
16
+
Before you begin creating your new module, make sure that you have a working installation of Magento 2.0, and the Magento [System Requirements]({{ site.gdeurl }}install-gde/system-requirements.html).
17
17
18
18
Also, Magento recommends that you disable caching while performing the following steps.
19
19
@@ -29,14 +29,14 @@ In subsequent topics, we will discuss which configuration files are needed for y
29
29
<h2id="create-module-file-structure">Build the file structure</h2>
30
30
First let's create the <ModuleName> directory. Use a module name that is descriptive, and not too long.
31
31
32
-
Next, you can create the /etc directory, within the <ModuleName> directory:
32
+
Next, you can create the `/etc` directory within the `<ModuleName>` directory:
33
33
34
34
Example:
35
35
36
-
<ModuleName>
37
-
/etc
36
+
<ModuleName>
37
+
/etc
38
38
39
-
The /etc directory is where the `module.xml` file resides, and this directory is required no matter how you plan to use the module. Additional directories may be needed under the <ModuleName> directory, depending on how you plan to use the module.
39
+
The `/etc` directory is where the `module.xml` file resides, and this directory is required no matter how you plan to use the module. Additional directories may be needed under the `<ModuleName>` directory, depending on how you plan to use the module.
40
40
41
41
We will look at the additional directories in the next topic, and link to some sample modules showing these directories and the configuration files in each. Typically these components are:
42
42
@@ -59,12 +59,10 @@ A module declares itself (i.e. defines its name and existence) in the `module.xm
0 commit comments