[Chameleon] Problem with keymap

Inizan, Sebastien (CDS-VPI) SIN at euro.who.int
Wed Jul 20 10:02:51 EDT 2005


Hi !

For some reasons, I can not manage to display a picture inside the keymap. 

Is there anything I should add in the .phtml file ? When I make my own
.phtml and use a template from the samples, it does not work neither.  

Here is my .phtml:

<?php
/*
 * this is a sample of a minimal application script required to
 * get a chameleon application running with a template and a
 * local map file.  Most applications should actually just
 * copy this file and modify the template and mapfile
 * parts and should not need to do a lot more here.
 */
include( "C:\ms4w\apps\chameleon\htdocs\chameleon.php" );


$szTemplate = "./sample_basic.html";
$szMapFile = "../map/euro.map";

class SampleApp extends Chameleon
{
  function SampleApp()
  {
    parent::Chameleon();
    $this->moMapSession = new MapSession_RW;
    $this->moMapSession->setTempDir( getSessionSavePath());
  }
}

$oApp =  new SampleApp();
$oApp->registerSkin( 'skins/sample' );
$oApp->CWCInitialize( $szTemplate, $szMapFile  );
$oApp->CWCExecute();
?>





More information about the Chameleon mailing list