PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Zimo Xiao   Angel Framework   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Angel Framework
Handle HTTP requests received by Web applications
Author: By
Last change:
Date: 6 years ago
Size: 431 bytes
 

Contents

Class file image Download
<?php
 
require __dir__.'/vendor/autoload.php';
 
$whoops = new \Whoops\Run;
 
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
 
$whoops->register();
 
//get system errors by Whoops
  //disable as deployed

 
require_once __dir__.'/vendor/angel-project/core/bootstrap.php';
  new
angel\bootstrap;
 
//start angel

 
system::get_error('on');
 
system::get_runtime('off');
 
//get system debug messages
  //hello angel!