PHP Classes

File: backend/index.php

Recommend this page to a friend!
  Classes of Rodrigo Faustino   PHP CRUD MVC   backend/index.php   Download  
File: backend/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP CRUD MVC
Develop applications that provide CRUD interfaces
Author: By
Last change:
Date: 6 months ago
Size: 235 bytes
 

Contents

Class file image Download
<?php

namespace App;
require
'../vendor/autoload.php';
use
App\Router;

$requestMethod = $_SERVER["REQUEST_METHOD"];
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$router = new Router($requestMethod, $uri);
$router->run();