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); }
function uri_make() { $uri = so_uri::makeInstance(); $uri->path = strtr($this->relate(so_front::make()->dir), array('%' => urlencode('%'))); return $uri->primary(); }
<?php require_once __DIR__ . '/../so/autoload/so_autoload.php'; new so_Compile_All(); so_front::make()->namespace('so')->run();