nerdexam
Adobe

AD0-E724 · Question #38

Where does the entry point exist for the adminhtml area?

The correct answer is A. pub/index.php. In Magento 2, pub/index.php serves as the single unified entry point for all application areas - including frontend (storefront) and adminhtml (admin panel). Magento's routing system inspects the request URL and determines which area to bootstrap based on the configured admin pat

Setup and Configuration

Question

Where does the entry point exist for the adminhtml area?

Options

  • Apub/index.php
  • Bpublic/index.php
  • Cadmin/index.php
  • Dadminhtml/index.php

How the community answered

(22 responses)
  • A
    77% (17)
  • B
    5% (1)
  • C
    5% (1)
  • D
    14% (3)

Explanation

In Magento 2, pub/index.php serves as the single unified entry point for all application areas - including frontend (storefront) and adminhtml (admin panel). Magento's routing system inspects the request URL and determines which area to bootstrap based on the configured admin path (e.g., /admin), not by loading a different PHP file.

Why the distractors are wrong:

  • B (public/index.php) - This directory doesn't exist in Magento 2's structure; it's a common confusion with Laravel or other frameworks.
  • C (admin/index.php) - No such file exists; the "admin" segment is a URL path, not a filesystem entry point.
  • D (adminhtml/index.php) - adminhtml is an internal Magento area code used in code and configuration, not a physical directory with its own entry file.

Memory tip: Think "one door, many rooms" - pub/index.php is the single front door to the entire Magento 2 application, and Magento's router directs traffic to the correct "room" (area) once inside.

Topics

#adminhtml entry point#pub/index.php#admin area#application bootstrap

Community Discussion

No community discussion yet for this question.

Full AD0-E724 Practice