[Chameleon] Questions about Chameleon-1.1a

Jason Fournier
Mon, 29 Mar 2004 12:40:03 -0500

It's possible, through the index.phtml page, to load a context into the 
existing mapfile.  The mapfile is a necessary component to the operation 
of the application.  That being said, the Mapfile can be vanilla (ie, 
contain no layers).  Here is a sample index.phtml you could use:


include( "/path/to/chameleon.php" );

$szTemplate = "test.html";
$szMapFile = "/path/to/";
$szContext = "/path/to/test.cml";

class FOO extends Chameleon
  function FOO()
    $this->moMapSession = new MapSession_RW;
    $this->moMapSession->setTempDir( getSessionSavePath());

$oApp =  new FOO();
$oApp->CWCInitialize( $szTemplate, $szMapFile  );

if (!isset($_GET['NAV_CMD']) && !isset($_POST['NAV_CMD']))
    $oApp->moMapSession->oMap->loadMapContext( $GLOBALS['szContext'] );



This code is a temporary solution to a feature that will be supported in 
a future version of Chameleon.

Kind Regards,

we wei wrote:

>Hi all,
>Does anyone know how can I use a context file to start
>up Chameleon application in Chameleon 1.1a instead of
>a mapfile?  Also, is it possible to have the manage
>servers functionality in the Layer manager of
>Chameleon 1.0.5 in Chameleon-1.1a ?  If it is
>possible, which widget should I use?
>Thanks in advance,
>Do you Yahoo!?
>Yahoo! Finance Tax Center - File online. File on time.
>Chameleon mailing list

Jason Fournier
DM Solutions Group
Application Developer
Ottawa, ON
613.565.5056 x 18

This archive was generated by Pipermail.