[Chameleon] Making chameleon work with index.php
Ken Sanderson
ken at rockies.ca
Mon Aug 30 19:33:36 EDT 2004
Thanks Jason. I was busy looking through the PHP code for where I might
be able to hard code a default, totally didn't think of just adding it
to the form action tag :)
Ken
-----Original Message-----
From: Jason Fournier [mailto:jfournier at dmsolutions.ca]
Sent: August 30, 2004 4:08 PM
To: Ken Sanderson
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] Making chameleon work with index.php
Ken,
You can try setting the action of the form to action="test.phtml". This
sounds similar to the issue in
http://lists.maptools.org/pipermail/chameleon/2004-March/000572.html .
With IIS you can also set the default document for the application
directory to test.phtml (and remove all other default document
declarations).
Jason
Ken Sanderson wrote:
> I use IIS, but I gather from below all that is happening there is
> index.html and test.phtml will be looked for if no file is specified
> in the URL. So in this case www.rockies.ca/chameleon would look for
> index.html or test.phtml, or maybe its saying use test.phtml instead
> of index.html? We have the same settings for IIS and I have it setup
> and working. The problem is it only works for the first load of
> chameleon, after that it returns a page error whenever I try and use a
> tool.
>
> I am guessing its something in the code that's using the URL to
> determine the name of the file to load, and because
> www.rockies.ca/chameleon doesn't list a specific filename its erroring
> out.
>
> Ken
>
> -----Original Message-----
> From: chameleon-bounces at lists.maptools.org
> [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Eric
> Bridger
> Sent: August 30, 2004 1:25 PM
> To: Ken Sanderson
> Cc: chameleon at lists.maptools.org
> Subject: Re: [Chameleon] Making chameleon work with index.php
>
>
> Are you running Apache? Do you have access to your Apache
> configuration
> file: httpd.conf? If so this should work:
>
> <Directory /home/www/htdocs/chameleon>
> DirectoryIndex index.html test.phtml
> </Directory>
>
> Eric
>
>
> On Mon, 2004-08-30 at 13:29, Ken Sanderson wrote:
>
>>Is there a way to make chameleon work with just the directory name in
>>the URL with the 1.99b chameleon sample setup?
>>
>>For example http://www.rockies.ca/chameleon instead of
>>http://www.rockies.ca/chameleon/test.phtml
>>
>>I renamed the 'test.phtml' to 'index.php' which is one of my default
>>names that auto loads when you type in just the directory path. This
>>works for the initial load, but if you do anything after that it
>>returns a 'cant find page' error. I have another project setup with
>>some javascript front end that starts at the index.php, but because of
>
>
>>the scripting it auto adds index.php to the location bar and thus it
>>works fine.
>>
>>Thoughts on how to enable this?
>>
>>Ken
>>
>>
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
>>
>
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
--
_____________________________
Jason Fournier
Applications Development
DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18
More information about the Chameleon
mailing list