MapTools.org

[Chameleon] problem in HelpWidget.widget.php

bartvde@xs4all.nl bartvde@xs4all.nl
Fri, 21 Nov 2003 14:37:07 +0100 (CET)
Hi list,

there is a problem with the code in HelpWidget.widget.php in the last
alpha version. It used to work in previous versions to get a help text
from a widget.

The path to the help.html files seems to have changed, don't know why.

In code it says:
if (!file_exists("widgets/".$this->maParams["WIDGET"].".help.html"))

But at this location nothing is found. When I change this to:
if
(!file_exists("../../chameleon/htdocs/widgets/".$this->maParams["WIDGET"].".help.html"))

it works. So apparently the help.html files are searched starting from the
location where the index.phtml of the application resides, and not
starting from the /ms4w/apps/chameleon/htdocs/ path.

Can anybody explain this behaviour, is it a bug?

Best regards,
Bart

P.S. This also applies to the second code line which contains the same path:
$aFile =
file("../../chameleon/htdocs/widgets/".$this->maParams["WIDGET"].".help.html");


This archive was generated by Pipermail.