Little change to accept !== and ===
[haanga.git] / examples / inheritance.php
blob831780c54de5446b9fb5552f6ec8e1609d4567c8
1 <?php
2 /**
3 * Simple example rendering a user list
4 * ------------------------------------
5 *
6 * @credit - adapt from ptemplates sample
7 */
8 require "../lib/Haanga.php";
10 Haanga::registerAutoload();
11 Haanga::setCacheDir('tmp/');
12 Haanga::setTEmplateDir('inheritance/');
14 $time_start = microtime(true);
16 Haanga::Load('page.html', array(
17 'title' => microtime(TRUE),
18 'users' => array(
19 array(
20 'username' => 'peter',
21 'tasks' => array('school', 'writing'),
22 'user_id' => 1,
24 array(
25 'username' => 'anton',
26 'tasks' => array('go shopping'),
27 'user_id' => 2,
29 array(
30 'username' => 'john doe',
31 'tasks' => array('write report', 'call tony', 'meeting with arron'),
32 'user_id' => 3
34 array(
35 'username' => 'foobar',
36 'tasks' => array(),
37 'user_id' => 4
40 ));
42 echo "in ".(microtime(true) - $time_start)." seconds\n<br/>";