Skip to content

#291 :- Add routes.xml code template description #349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
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>.
</font><br>
</td>
</tr
</tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
<tr>
Expand Down
43 changes: 43 additions & 0 deletions resources/fileTemplates/internal/Magento Routes Xml.xml.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
/*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<html>
<body>
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
<tr>
<td><font face="verdana" size="-1">
The routes.xml file maps which module to use for a URL with a specific frontName and area.
The location of the routes.xml file in a module, either etc/frontend or etc/adminhtml, specifies where those routes are active.
</font><br>
</td>
</tr>
<tr>
<td><font face="verdana" size="-1">
Read more About the routes.xml in the
<a href="https://devdocs.magento.com/guides/v2.4/extension-dev-guide/routing.html#routesxml">
DevDocs</a>.
</font><br>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
<tr>
<td colspan="3"><font face="verdana" size="-1">Predefined variables explanation:</font></td>
</tr>
<tr>
<td valign="top"><nobr><font face="verdana" size="-2"><b>${ROUTER_ID}</b></font></nobr></td>
<td width="10">&nbsp;</td>
<td width="100%" valign="top"><font face="verdana" size="-1">specifies the name of the router in Magento.
See the reference tables in the
<a href="https://devdocs.magento.com/guides/v2.4/extension-dev-guide/routing.html#router-class">
Router class section
</a>.
</font>
</td>
</tr>
</table>
</body>
</html>