16 lines
		
	
	
		
			318 B
		
	
	
	
		
			PHP
		
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			318 B
		
	
	
	
		
			PHP
		
	
	
	
| 
								 | 
							
								<?php require('../vendor/autoload.php');
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								/*
							 | 
						|||
| 
								 | 
							
								 * Example: Using MITE as a base class
							 | 
						|||
| 
								 | 
							
								 */
							 | 
						|||
| 
								 | 
							
								class test extends Mite {
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    function index()
							 | 
						|||
| 
								 | 
							
								    {
							 | 
						|||
| 
								 | 
							
								        $this->view('views/index.tpl.php');
							 | 
						|||
| 
								 | 
							
								    }
							 | 
						|||
| 
								 | 
							
								}
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								$app = new test(array('debug' => TRUE, 'index' => '/mite/examples/extend.php'));
							 | 
						|||
| 
								 | 
							
								$app->route('/', 'index');
							 | 
						|||
| 
								 | 
							
								$app->run();
							 |