mite-php-legacy/examples/extend.php

16 lines
302 B
PHP

<?php require(__DIR__ . '/../src/mite.php');
/*
* Example: Using MITE as a base class
*/
class test extends Mite {
function index()
{
$this->view('index.tpl.php');
}
}
$app = new test(['debug' => TRUE, 'index' => __FILE__]);
$app->route('/extend.php', 'index');
$app->run();