[Chameleon] Unoriginal problem (sorry) : blank page with new

bartvde at xs4all.nl bartvde at xs4all.nl
Tue Jun 1 04:01:53 EDT 2004


Hi Jacob,

did you check to see if the sample applications are working?

/ms4w/apps/chameleon/samples/htdocs/

Depending on if you are using MS4W, you will need to create an Apache
alias for this.

Best regards,
Bart

> Hi All,
>
> I just downloaded the windows binary and installed it. Prior to this, I
> used
> version 1.0.4 of chameleon.
>
> I have successfully added the aliases to Apache, and server-side scripting
> runs fine in the htdocs directory of Chameleon. But I get a blank page.
>
> As I used CWC2.php before, I am not very knowledgeable about how to launch
> this version of Chameleon. I used a template from the mailinglist to
> instantiate the chameleonclass (attached below, named index.phtml). Can
> anyone spot anything wrong with it?
>
> My mapfile is correct. My template is a copy of 'simplest.html'. Can
> someone
> point me to the right direction?
>
> Regards,
>
> Jacob
>
>
> ----------------------------------------------------------------
> <?
> include( "c:/chameleon/roe7/htdocs/chameleon.php" );
>
> $szTemplate = "c:/web/roe7/template/template.html";
> $szMapFile = "c:/web/roe7/mapfile.map";
>
> class test extends Chameleon
> {
>   function test()
>   {
>     parent::Chameleon();
>     $this->moMapSession = new MapSession_RW;
>     $this->moMapSession->setTempDir( getSessionSavePath());
>   }
>
>   function CWCInitializeMap()
>   {
>     parent::CWCInitializeMap();
>   }
>
>   function CWCLoadTemplate($szTemplateName)
>   {
>     $this->mszTemplate = implode("\n", file($szTemplateName));
>   }
> }
>
> $oApp =  new test();
> $oApp->CWCInitialize( $szTemplate, $szMapFile  ); $oApp->CWCExecute();
> ?>
> -------------------------------------------------------------------
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>



More information about the Chameleon mailing list