forked from PureMVC/puremvc-php-standard-framework
/
index.php
38 lines (33 loc) · 890 Bytes
/
index.php
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
31
32
33
34
35
36
37
38
<?php
/**
* PureMVC PHP Basic Demo
* PureMVC Port to PHP originally translated by Asbjørn Sloth Tønnesen
*
* @author Omar Gonzalez :: omar@almerblank.com
* @author Hasan Otuome :: hasan@almerblank.com
*
* Created on Sep 24, 2008
* PureMVC - Copyright(c) 2006-2008 Futurescale, Inc., Some rights reserved.
* Your reuse is governed by the Creative Commons Attribution 3.0 Unported License
*/
require_once 'org/puremvc/php/demos/basic/BasicDemo.php';
// name of file user browsed to
$filename = $_SERVER[ 'PHP_SELF' ];
// css file name from css zen garden styles click
if (isset( $_GET[ 'c' ] ))
{
$cssName = $_GET[ 'c' ];
}
else
{
$cssName = "default";
}
function html_debug( $stack )
{
print( $stack . '<br/>' );
}
// start php application
$basicDemo = new BasicDemo();
// start up the view by sending in the variables.
$basicDemo->startView( $filename, $cssName );
?>