Skip to content

Instantly share code, notes, and snippets.

@vihugarcia
Created July 26, 2023 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vihugarcia/e4d592a2f6c8481a529e48f59f1027fc to your computer and use it in GitHub Desktop.
Save vihugarcia/e4d592a2f6c8481a529e48f59f1027fc to your computer and use it in GitHub Desktop.
Chapter 09 index.php file
<?php
require "../vendor/autoload.php";
require "../config/config.php";
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(dirname(__FILE__)));
if (!isset($_GET['url'])) $_GET['url'] = 'site/index';
$url = $_GET['url'];
require_once(ROOT . DS . 'simplemvc' . DS . 'bootstrap.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment