index.php 524 Bytes
<?php
/**
 * F3-NR catcher.
 * 
 * @file
 * @author Adhidarma <adhisimon@gmail.com>
 */

$f3 = require("../vendor/fatfree-master/lib/base.php");

// configuration files
$f3->config("../f3-nr/config.ini");
if (file_exists("../app/config.ini")) {
	$f3->config("../app/config.ini");
}

if (file_exists("../app/config.local.ini")) {
	$f3->config("../app/config.local.ini");
}

// routing configuration
$f3->config("../f3-nr/routes.ini");
if (file_exists("../app/routes.ini")) {
	$f3->config("../app/routes.ini");
}

$f3->run();