2

I want to call the HTML file in this function. Currently, it is showing exception but I want custom HTML design to display.

Magento/vendor/magento/framework/app/bootstrap.php

   if ($isOn && !$isExpected) {
      $this->errorCode = self::ERR_MAINTENANCE;
      echo "<h1>Hello<h1/>";
                throw new \Exception('Unable to proceed: the maintenance mode is enabled. ');
            }
  • Is "Hello" showing or not? – Mr Zid Feb 18 at 7:12
  • Yes, it is showing hello. but my requirement to call HTML file here in which I do all my designing part. – Yousaf Feb 18 at 7:13
  • I think its better to create a custom theme to achieve this [link]atwix.com/magento-2/error-page-customization – Mr Zid Feb 18 at 7:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.