ExamGecko
Question list
Search
Search

Question 4 - AD0-E717 discussion

Report
Export

Which file should a developer use to set the default value when creating configuration fields for admin?

A.
etc/adminhtml/config.xml
Answers
A.
etc/adminhtml/config.xml
B.
etc/config xml
Answers
B.
etc/config xml
C.
etc/adminhtml/system.xml
Answers
C.
etc/adminhtml/system.xml
Suggested answer: C

Explanation:

To set the default value when creating configuration fields for admin, a developer should use the etc/adminhtml/system.xml file. This file contains the configuration for the admin panel, and the developer can add a new configuration field with a default value by using the following code:

<config>

<default>

<my_custom_config_field>10</my_custom_config_field>

</default>

</config>

asked 02/10/2024
Mohamed Hany
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first