<?php// equivalent of filters, bring in resources. This sets these resource// objects to scope variables, eg: $dba, $options:resource { 'dba', 'options'}// default action:action { // active-records like $dba('table_name')->findAll(); // normal dba like $res = $dba()->query("SELECT * FROM moo");}// test action, arguments passed hint at the route structure:action 'login' (int $a, '[a-zA-Z0-9]' $b, bool $c) { // bring in the user library :resource { 'user' } if($user->login('k4st', 'password')) { echo 'yay'; } else { echo 'nay'; }}// custom controller for missing action, without this there would be a// 404 error page:default { header('Status: 404 Not Found');}