Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
index.php
Go to the documentation of this file.
1 <?php
21 try {
22  require __DIR__ . '/app/bootstrap.php';
23 } catch (\Exception $e) {
24  echo <<<HTML
25 <div style="font:12px/1.35em arial, helvetica, sans-serif;">
26  <div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
27  <h3 style="margin:0;font-size:1.7em;font-weight:normal;text-transform:none;text-align:left;color:#2f2f2f;">
28  Autoload error</h3>
29  </div>
30  <p>{$e->getMessage()}</p>
31 </div>
32 HTML;
33  exit(1);
34 }
35 
38 $app = $bootstrap->createApplication(\Magento\Framework\App\Http::class);
39 $bootstrap->run($app);
static create($rootDir, array $initParams, ObjectManagerFactory $factory=null)
Definition: Bootstrap.php:119
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60
exit
Definition: redirect.phtml:12
const BP
Definition: autoload.php:14
$app
Definition: index.php:38
catch(\Exception $e) $bootstrap
Definition: index.php:36