mite-php-legacy/examples/53oop.php

13 lines
252 B
PHP
Raw Normal View History

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();