Opened 13 years ago

Closed 12 years ago

#179 closed defect (fixed)

New sample templating method - doesn't work in Windows

Reported by: adube Owned by: adube
Priority: major Milestone: 1.2.0
Component: samples Version: trunk
Keywords: bis-1.2.0 Cc:

Description

In #159, all samples were modified to use a single xslt template file now located in the template directory. It uses php methods to include header and footer files in order to have unique descriptions for each sample

The issue is : it doesn't work in Windows. The header and footer files are not included.

Change History (7)

comment:1 by yvesm, 13 years ago

Various tests that give some but -- not satisfactory -- results :

  • use include rather thant return in the getSampleHeader and getSampleFooter functions in config.php
  • return include($strFile); instead of return $strFile; in the getSampleIncFile function in config.php

Both those give lots of junk and concatenate both the header and footer at the top of the page.

comment:2 by yvesm, 13 years ago

I have it working on my own windows machine with r1002. However, it won't work on geoprisma.org because there is a space in the full path where the footer/header files are (e.g. "C:\Program Files\...). Bugger ! I quit ;-).

comment:3 by adube, 12 years ago

Milestone: Future

comment:4 by adube, 12 years ago

Milestone: Future1.2.0
Version: trunk

This should be automatically fixed by #356.

comment:5 by adube, 12 years ago

Keywords: bis-1.2.0 added

comment:6 by adube, 12 years ago

Owner: set to adube

comment:7 by adube, 12 years ago

Resolution: fixed
Status: newclosed

Fixed with #356.

Note: See TracTickets for help on using tickets.