PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net


 

Templating

How will it work?

KISS

Current Idea

Code:

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.txt · Last modified: 2008/06/10 12:56 by barrycarlyon
 
Atom | show source | credits | stats | sitemap | contact | advertising | mirror sites