ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 14 - AD0-E720 discussion

Report
Export

An Adobe Commerce developer created a module called Orange_Customer. In customer information.

Where would the developer place this file?

A.
app/code/OrangG/customer/viev^/frontend/web/templates/customer-info.phtml
Answers
A.
app/code/OrangG/customer/viev^/frontend/web/templates/customer-info.phtml
B.
app/code/Orange/Customer/frontend/templates/customer-info.phtml
Answers
B.
app/code/Orange/Customer/frontend/templates/customer-info.phtml
C.
app/code/OrangG/Custon>Gr/viGw/frontGnd/templates/customGr-info.phtml
Answers
C.
app/code/OrangG/Custon>Gr/viGw/frontGnd/templates/customGr-info.phtml
Suggested answer: C

Explanation:

To place a template file for a custom module, the developer should follow this path pattern:

app/code/<Vendor>/<Module>/view/<Area>/templates/<Template>

In this case, the vendor name is Orange, the module name is Customer, the area is frontend, and the template name is customer-info.phtml. Therefore, the correct path is:

app/code/Orange/Customer/view/frontend/templates/customer-info.phtml

The following paths are not correct and will not work:

app/code/Orange/customer/view/frontend/web/templates/customer-info.phtml: This path is incorrect because it uses web instead of templates, which is used for storing web assets like CSS, JS, and images, not template files.

app/code/Orange/Customer/frontend/templates/customer-info.phtml: This path is incorrect because it misses the view directory, which is required for separating frontend and backend templates.

asked 02/10/2024
Jason Coleman
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first