examples
This commit is contained in:
		
							
								
								
									
										18
									
								
								app/controllers/ExampleController.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								app/controllers/ExampleController.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
class ExampleController extends Controller{
 | 
			
		||||
 | 
			
		||||
	public function index(){
 | 
			
		||||
		echo 'example';
 | 
			
		||||
 | 
			
		||||
		// TODO:
 | 
			
		||||
		// - set view
 | 
			
		||||
		// - process POST variables
 | 
			
		||||
		// ...
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public function subpage(){
 | 
			
		||||
		echo 'subpage';
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user