Location: PHPKode > scripts > Gedar Template Engine > gedar-template-engine/sample/sample1.php
<?php
include "../GedarTemplate.inc.php";
$list = array( 
		array
		(
		 "name"=>"ali",
		 "family"=>"masoudi",
		 "age"=>"24",
		 "job Title"=>"software Developing"
		 ),
		array
		(
		 "name"=>"hamed",
		 "family"=>"gaeeni",
		 "age"=>"24",
		 "job Title"=>"software Developing"
		 ),
		array
		(
		 "name"=>"mahmood",
		 "family"=>"Karimi",
		 "age"=>"24",
		 "job Title"=>"Server Admin"
		 ),
		);
$Template = new Template("sample1.htm","../template/");
$Template->assign("list",$list);
$Template->show(false,"ali.html");
?>
Return current item: Gedar Template Engine