MapTools.org

[Chameleon] Problems getting started ...

Paul Spencer spencer@dmsolutions.ca
Wed, 17 Dec 2003 16:46:53 -0500
JF,

Bart is correct.  In Chameleon, there is no service instance (yet), so 
you create a simple php script that ties together your map file and 
template using the base class in chameleon.php

As Bart suggests, there is a sample of this that should work for simple 
applications without modification.  We can extend the sample to load a 
context file, which is simply loading a map file and then loading the 
context into the map file.  Or we can use a map file with WMS layers. 
Same difference.

I still owe you a response on the previous email, I haven't worked my 
way up to it but will try to respond tonight.

Cheers,

Paul


Bart van den Eijnden wrote:
> Hi Jean-Francois,
> 
> in an earlier post you said you were using Chameleon 1.1 Alpha 6.
> 
> I think what you are trying now is the Chameleon 1.0 way 
> (/chameleon/chameleon.php?TEMPLATE=demo.html&CONTEXT=gmap_context.xml).
> 
> Try installing the Chameleon sample application and then run that by 
> trying the URL (create the sample_app alias to "sampleapp"/htdocs 
> directory):
> 
> /sample_app/index.phtml
> 
> Make sure the paths in index.phtml to MAP/Context file and template are 
> correct.
> 
> Best regards,
> Bart
> 
> On Wed, 17 Dec 2003 16:04:12 -0500, 
> <Jean-Francois.Doyon@CCRS.NRCan.gc.ca> wrote:
> 
>> OK, so I've got PHP 4.3.3 compiled the way I want to, as well as
>> mapserver/mapscript. (Except that I've hacked PHP/MapScript to work 
>> with PHP
>> as a module for Apache to test the thread safety).
>>
>> I've also configured cwc2.xml and renamed it removing the -dist ...
>>
>> I've made the web user owner of the data directory ...
>>
>> I've added /tmp/ms_tmp and /tmp/ms_tmp/buttons ...
>>
>> And I've aliased as such:
>>
>>     Alias /ms_tmp/ /tmp/ms_tmp/
>>
>>     Alias /chameleon/ /usr/local/chameleon/htdocs/
>>
>> Now I'm trying the following URL:
>>
>> /chameleon/chameleon.php?TEMPLATE=demo.html&CONTEXT=gmap_context.xml
>>
>> And am just getting a blank page ...
>>
>> To be exact, it contains the following code:
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>> <HTML><HEAD>
>> <META http-equiv=Content-Type content="text/html;
>> charset=windows-1252"></HEAD>
>> <BODY></BODY></HTML>
>>
>> I've also built the "wmsparse" utility.
>>
>> I guess I'm missing something but I'm all out of ideas !
>>
>> Find my cwc2.xml attached. <<cwc2.xml>>
>>
>> Any help would be greatly appreciated !
>>
>> Thanks,
>>
>> Jean-François Doyon
>> Internet Service Development and Systems Support / Développement des
>> services et soutien de systèmes Internet
>> GeoAccess Division / Division GéoAccès
>> Canada Center for Remote Sensing / Centre canadien de télédétection
>> Natural Resources Canada / Ressources naturelles Canada
>> http://atlas.gc.ca
>> Phone: (613) 992-4902
>> Fax: (613) 947-2410
>>
> 
> 
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           spencer@dmsolutions.ca    |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------



This archive was generated by Pipermail.