Revision 19
(checked in by jcleary, 17 years ago)
|
Last code checkout from earlier SVN instance
|
Line | |
---|
1 |
<?php |
---|
2 |
/* |
---|
3 |
* this is a sample of a minimal application script required to |
---|
4 |
* get a chameleon application running with a template and a |
---|
5 |
* local map file. Most applications should actually just |
---|
6 |
* copy this file and modify the template and mapfile |
---|
7 |
* parts and should not need to do a lot more here. |
---|
8 |
*/ |
---|
9 |
include( "/usr/local/chameleon//htdocs/chameleon.php" ); |
---|
10 |
|
---|
11 |
|
---|
12 |
$szTemplate = "./static.html"; |
---|
13 |
$szMapFile = "../maps/mouseover.map"; |
---|
14 |
|
---|
15 |
class SampleApp extends Chameleon |
---|
16 |
{ |
---|
17 |
function SampleApp() |
---|
18 |
{ |
---|
19 |
parent::Chameleon(); |
---|
20 |
$this->moMapSession = new MapSession_RW; |
---|
21 |
$this->moMapSession->setTempDir( getSessionSavePath()); |
---|
22 |
} |
---|
23 |
} |
---|
24 |
|
---|
25 |
$oApp = new SampleApp(); |
---|
26 |
$oApp->registerSkin( 'skins/sample' ); |
---|
27 |
$oApp->CWCInitialize( $szTemplate, $szMapFile ); |
---|
28 |
$oApp->CWCExecute(); |
---|
29 |
?> |
---|