コード例 #1
0
ファイル: index.php プロジェクト: TheCypher/randomThings
<?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}"]);
コード例 #2
0
ファイル: about.php プロジェクト: TheCypher/phpNgin
<?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}"]);