MapTools.org

[Chameleon] problem in HelpWidget.widget.php

Paul Spencer spencer@dmsolutions.ca
Fri, 21 Nov 2003 09:05:24 -0500
Bart, thanks for pointing this out, it is indeed a bug.  There are a 
couple of issues with this ... one being that widgets can now come from 
different directories, and the other being that we are redesigning the 
widget documentation structure somewhat.  In any case, this is a bug and 
will be fixed in the cvs version in the next week or so.  Your 
workaround is an acceptable solution for the moment, the final code will 
actually search all possible widget directories.

Chees,

Paul

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
> 

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




This archive was generated by Pipermail.