mite-php-legacy/examples/extend.php

16 lines
302 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: Using MITE as a base class
*/
class test extends Mite {
function index()
{
2023-06-23 17:12:50 +00:00
$this->view('index.tpl.php');
2018-12-09 08:04:11 +00:00
}
}
2023-06-23 17:12:50 +00:00
$app = new test(['debug' => TRUE, 'index' => __FILE__]);
$app->route('/extend.php', 'index');
2018-12-09 08:04:11 +00:00
$app->run();