MapTools.org

[Chameleon] problem in HelpWidget.widget.php

Christopher R. Thorne thorne@dmsolutions.ca
Fri, 21 Nov 2003 09:14:06 -0500
Thank you, for reviewing the issues with this widget. As you know this 
widget currently does not work. We are are currently rebuilding our 
documentation framework for Chameleon, and probably will not be resolved 
for another couple of months.

This widget as well as other basic widgets will be reviewed and cleaned 
up for our next release, which will be within the next couple of months.

Chris




bartvde@xs4all.nl wrote:
> 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");
> _______________________________________________
> Chameleon mailing list
> Chameleon@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 


-- 
Christopher R. Thorne
GIS Specialist,
DM Solutions Group Inc.

http://www.dmsolutions.ca
email: thorne@dmsolutions.ca
Phone: (613) 565-5056 ext.22
Fax :  (613) 565-0925
------------------------------




This archive was generated by Pipermail.