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

13 lines
250 B
PHP
Raw Normal View History

2018-12-09 08:04:11 +00:00
<?php require('../vendor/autoload.php');
/*
* Example: 5.3 OOP Anonymous Functions
*/
2018-12-09 08:59:38 +00:00
$app = new Mite(array('debug' => TRUE, 'index' => __FILE__));
2018-12-09 08:04:11 +00:00
$app->route('/', function() use($app) {
$app->view('views/index.tpl.php');
});
$app->run();