mite-php-legacy/examples/extend.php

16 lines
299 B
PHP
Raw Normal View History

2018-12-09 08:04:11 +00:00
<?php require('../vendor/autoload.php');
/*
* Example: Using MITE as a base class
*/
class test extends Mite {
function index()
{
2018-12-09 08:59:38 +00:00
$this->view('views\index.tpl.php');
2018-12-09 08:04:11 +00:00
}
}
2018-12-09 08:59:38 +00:00
$app = new test(array('debug' => TRUE, 'index' => __FILE__));
2018-12-09 08:04:11 +00:00
$app->route('/', 'index');
$app->run();