7 * Execute the controller and display the output.
9 * Note: This is really just an example which handles input and output using
10 * stock PHP variables and functions. Depending on the environment,
11 * it may be easier to work directly with `getCtrl()->run(...)` which
12 * handles inputs/outputs in a more abstract fashion.
17 public static function run($ctrl) {
18 $method = $_SERVER['REQUEST_METHOD'];
19 list ($headers, $body) = $ctrl->run($method, ($method === 'GET' ?
$_GET : $_POST));
20 foreach ($headers as $k => $v) {