PHP Classes

File: etc/Start.php

Recommend this page to a friend!
  Classes of Adrian M   upMVC   etc/Start.php   Download  
File: etc/Start.php
Role: Class source
Content type: text/plain
Description: Class source
Class: upMVC
Pure PHP web development without other frameworks
Author: By
Last change: some updates
Date: 2 months ago
Size: 390 bytes
 

Contents

Class file image Download
<?php

namespace upMVC;



class
Start

{

    public function
upMVC()

    {
       
$router = new Router();
       
$config = new Config();

       
$reqURI = $_SERVER['REQUEST_URI'];
       
$reqMet = $_SERVER['REQUEST_METHOD'];

       
$reqRoute = $config->getReqRoute($reqURI);

       
$initRoutes = new Routes($router);
       
$initRoutes->startRoutes($reqRoute, $reqMet);
    }
}