Beispiel #1
0
 public static function notFound()
 {
     self::status(404);
     $medusa = new Medusa();
     $medusa->views_path = Globals::get('base_path') . '/olimpus/system/pages';
     $medusa->load('NotFound')->draw();
 }
Beispiel #2
0
<?php

/**
 * Bitphp Framework
 */
require 'bitphp/autoload.php';
use Bitphp\Base\MicroServer;
use Bitphp\Modules\Layout\Medusa;
use Bitphp\Core\Log;
$server = new MicroServer();
$server->doGet('/', function () {
    Medusa::quick('welcome');
});
$server->run();
Beispiel #3
0
 public static function quick($name, $vars = array())
 {
     $loader = new Medusa();
     $loader->load($name)->with($vars)->draw();
     $loader = null;
 }