Skip to content

Commit 7889b1f

Browse files
authored
Merge pull request #349 from konarshankar07/routes-xml-template-description
#291 :- Add routes.xml code template description
2 parents 84bc3f7 + a26f915 commit 7889b1f

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

resources/fileTemplates/internal/Magento Php Preference Class.php.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Read more About the preferences in the <a href="https://devdocs.magento.com/guides/v2.3/extension-dev-guide/build/di-xml-file.html#abstraction-implementation-mappings">DevDocs</a>.
2121
</font><br>
2222
</td>
23-
</tr
23+
</tr>
2424
</table>
2525
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
2626
<tr>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--
2+
/*
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
-->
7+
<html>
8+
<body>
9+
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
10+
<tr>
11+
<td><font face="verdana" size="-1">
12+
The routes.xml file maps which module to use for a URL with a specific frontName and area.
13+
The location of the routes.xml file in a module, either etc/frontend or etc/adminhtml, specifies where those routes are active.
14+
</font><br>
15+
</td>
16+
</tr>
17+
<tr>
18+
<td><font face="verdana" size="-1">
19+
Read more About the routes.xml in the
20+
<a href="https://devdocs.magento.com/guides/v2.4/extension-dev-guide/routing.html#routesxml">
21+
DevDocs</a>.
22+
</font><br>
23+
</td>
24+
</tr>
25+
</table>
26+
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
27+
<tr>
28+
<td colspan="3"><font face="verdana" size="-1">Predefined variables explanation:</font></td>
29+
</tr>
30+
<tr>
31+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${ROUTER_ID}</b></font></nobr></td>
32+
<td width="10">&nbsp;</td>
33+
<td width="100%" valign="top"><font face="verdana" size="-1">specifies the name of the router in Magento.
34+
See the reference tables in the
35+
<a href="https://devdocs.magento.com/guides/v2.4/extension-dev-guide/routing.html#router-class">
36+
Router class section
37+
</a>.
38+
</font>
39+
</td>
40+
</tr>
41+
</table>
42+
</body>
43+
</html>

0 commit comments

Comments
 (0)