mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-10-30 20:01:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			472 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			472 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?
 | |
| 
 | |
| require("Smarty.class.php");
 | |
| 
 | |
| $smarty = new Smarty;
 | |
| 
 | |
| $smarty->assign("Name","Fred Irving Johnathan Bradley Peppergill");
 | |
| $smarty->assign("FirstName",array("John","Mary","James","Henry"));
 | |
| $smarty->assign("LastName",array("Doe","Smith","Johnson","Case"));
 | |
| $smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"),
 | |
| 							  array("I", "J", "K", "L"), array("M", "N", "O", "P")));
 | |
| 
 | |
| $smarty->display("./templates/index.tpl");
 | |
| 
 | |
| print "\ndone\n";
 | |
| 
 | |
| ?>
 |