issuetracker:template

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
issuetracker:template [2008/06/09 19:11] barrycarlyonissuetracker:template [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 How will it work? How will it work?
 +
 +KISS
  
  
Line 9: Line 11:
 Code: Code:
  
-  - //we need to determine what bug tracker templates to use 
-  - $bugtracker = array_shift(explode(".",$_SERVER['HTTP_HOST'])); 
-  - //lets check to see if those templates exist 
-  - $template = is_dir($_SERVER['DOCUMENT_ROOT'] . '../template/' . $bugtracker . '/') ? $_SERVER['DOCUMENT_ROOT'] . '../template/' .  - $bugtracker . '/' : 'php'; 
  
 +  1. //we need to determine what bug tracker templates to use
 +  2. $bugtracker = array_shift(explode(".",$_SERVER['HTTP_HOST']));
 +  3. //lets check to see if those templates exist
 +  4. $template = is_dir($_SERVER['DOCUMENT_ROOT'] . '../template/' . $bugtracker) ? $bugtracker : 'php';
 +
 +The Variables generated can then be used later for alternative stylesheet loading, and/or different content/template file loading.
 +Via Includes.
issuetracker/template.1213038679.txt.gz · Last modified: 2017/09/22 13:28 (external edit)