-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
33 lines (24 loc) · 690 Bytes
/
index.php
File metadata and controls
33 lines (24 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* Created by PhpStorm.
* User: menakafernando
* Date: 7/12/18
* Time: 10:35 AM
*/
include 'template.php';
$Stuff = array(
array("Thing" => "roses", "Desc" => "red"),
array("Thing" => "violets", "Desc" => "blue"),
array("Thing" => "you", "Desc" => "able to solve this"),
array("Thing" => "we", "Desc" => "interested in you"),
);
$Name = 'Menaka';
$template = new Template('template');
$template->assign('Name', $Name);
$template->assign('Stuff', $Stuff);
$template->render();
echo '<br>';
$extra = new Template('extra');
$extra->assign('Name', $Name);
$extra->assign('Stuff', $Stuff);
$extra->render();