PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Java Mon   jframe   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: jframe
Process and dispatch requests using MVC pattern
Author: By
Last change: add exception handler class
Date: 7 years ago
Size: 1,101 bytes
 

Contents

Class file image Download
<?php
/**
 * Javamon's JFramework
 *
 * PHP ??? ?? ???????
 *
 * Created on 2017. 5.
 * @package Javamon\Jframe
 * @category Index
 * @license http://opensource.org/licenses/MIT
 * @author javamon <javamon1174@gmail.com>
 * @link http://javamon.be/Jframe
 * @link https://github.com/javamon1174/jframe
 * @version 0.0.1
 */
namespace Javamon\Jframe;

use \
Javamon\Jframe\Core\Route as Route;

require_once
__DIR__.'/vendor/autoload.php';

//Please set the basic environment. => application/core/Config.php

// exception sample
// $email = "power@.com";
// try {
// //check if
// if(filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) {
// //throw exception if email is not valid
// throw new CustomException($email);
// }
// }
//
// catch (customException $e) {
// //display custom message
// echo $e->errorMessage();
// }
//
// return $this->setupLib();

/**
 * ??????? ???? HTTP ?? ??
 * Forwarding HTTP requests to the jframework route.
 */
$route = Route::getRequest();