2023-06-23 17:12:50 +00:00
|
|
|
|
<?php require(__DIR__ . '/../src/mite.php');
|
2018-12-09 08:04:11 +00:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Example: 5.3 OOP Anonymous Functions
|
|
|
|
|
*/
|
|
|
|
|
|
2023-06-23 17:12:50 +00:00
|
|
|
|
$app = new Mite(['debug' => TRUE, 'index' => __FILE__]);
|
2018-12-09 08:04:11 +00:00
|
|
|
|
|
2023-06-23 17:12:50 +00:00
|
|
|
|
$app->route('/53oop.php', function() use($app) {
|
|
|
|
|
$app->view('index.tpl.php');
|
2018-12-09 08:04:11 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$app->run();
|