13 lines
268 B
PHP
13 lines
268 B
PHP
|
<?php require('../vendor/autoload.php');
|
|||
|
|
|||
|
/*
|
|||
|
* Example: 5.3 OOP Anonymous Functions
|
|||
|
*/
|
|||
|
|
|||
|
$app = new Mite(array('debug' => TRUE, 'index' => '/mite/examples/53oop.php'));
|
|||
|
|
|||
|
$app->route('/', function() use($app) {
|
|||
|
$app->view('views/index.tpl.php');
|
|||
|
});
|
|||
|
|
|||
|
$app->run();
|