[Chameleon-dev] [Bug 607] [Chameleon] LegendTemplate not found
problem
bugzilla-daemon at www.maptools.org
bugzilla-daemon at www.maptools.org
Thu Aug 26 18:11:46 EDT 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=607
jmckenna at dmsolutions.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Additional Comments From jmckenna at dmsolutions.ca 2004-08-26 18:11 -------
the fix works for http:// paths but not for relative paths. so the problem has
to do with the else:
else
{
$oApp= GetChameleonApplication();
$this->mszTemplate = $oApp->resolvePath2( $this->mszTemplate,
$_SESSION['gszAppPath'] );
}
The problem is that $_SESSION['gszAppPath'] points to the path to chameleon.php,
not to the path to the template...see below for an example:
$this->mszTemplate ===========> ./sample_legend_template.html
$_SESSION['gszAppPath'] ==========> C:\ms4w\apps\chameleon\cwc2\htdocs
therefore the function resolvePath2 in chameleon.php returns ======>
C:\ms4w\apps\chameleon\cwc2\htdocs/sample_legend_template.html
(where it actually lies in C:\ms4w\apps\testapp\ or http://127.0.0.1/testapp/ )
More details:
I'm using the service instance of chameleon. I need my TEMPLATE file to
reference a legend template file relative to the location of the template file.
I believe this would be a common demand....
paul are u following me on this? i'm wondering if u have to parse
[gszAppWebPath] to get the TEMPLATE path only and then concatonate that with
$this->mszTemplate....anyway i'm out of my league, please help.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Chameleon-dev
mailing list