Ejemplo n.º 1
0
 static function finalize()
 {
     $error = trim(ob_get_clean(), " \r\n");
     if ($error) {
         static::$response = so_output::error($error);
     }
     if (!static::$response) {
         static::$response = so_output::error('Empty response');
     }
     so_front::make()->send(static::$response);
 }
Ejemplo n.º 2
0
 function uri_make()
 {
     $uri = so_uri::makeInstance();
     $uri->path = strtr($this->relate(so_front::make()->dir), array('%' => urlencode('%')));
     return $uri->primary();
 }
Ejemplo n.º 3
0
<?php

require_once __DIR__ . '/../so/autoload/so_autoload.php';
new so_Compile_All();
so_front::make()->namespace('so')->run();