Skip to content

Utilities

Emanuele Minotto edited this page Dec 14, 2024 · 6 revisions

The crystal microframework offers some utilities, like the 404 route.
But there are other utilities offered!

Excluding the utilities described in the Home, other utilities are:

$server = $mf('server');

var_dump($server['SERVER_NAME']); // localhost

$mf('get') // -> $_GET (with double access)
$mf('post') // -> $_POST (with double access)
$mf('cookie') // -> $_COOKIE (with double access)
$mf('env') // -> $_ENV (with double access)
$mf('request') // -> $_REQUEST (with double access)
$mf('server') // -> $_SERVER (with double access)
Clone this wiki locally