Ejemplo n.º 1
0
<?php

//error_reporting(-1);
//ini_set('display_errors', 'On');
/**
 * phpNgin - simple PHP framework
 */
$site_path = realpath(dirname(__FILE__));
define('__SITE_PATH', $site_path);
use App\Ngin\Handler;
require 'vendor/autoload.php';
$handler = new Handler();
$handler->loadPage(['page' => "index", 'path' => "{$site_path}"]);
Ejemplo n.º 2
0
<?php

/**
 * phpNgin - simple PHP framework
 */
$site_path = realpath(dirname(__FILE__));
define('__SITE_PATH', $site_path);
use App\Ngin\Handler;
require 'vendor/autoload.php';
$handler = new Handler();
$handler->loadPage(['page' => "about", 'path' => "{$site_path}"]);