000
11.03.2003, 19:07
scus
|
Moinsen, ich bin nun seit einiger Zeit auf der Suche nach einem guten, einfachen Templatesystem für PHP. Ich hab zwar schon ein oder zwei gefunden, die mir aber nicht so recht gefallen wollten. Nun meine Frage: Wer von euch kennt ein gutes?
Google und Konsorten hab ich schon befragt...
--
sincères amitiés scus -- Tand, Tand ist das Gebilde von Menschenhand
|
|
Profil || Suche
|
001
11.03.2003, 20:00
theDon
|
das thwb ist opensource, die template klasse (genau wie der rest) gpled.
--
\o tanz den naziprau! o/
And more than ever, I hope to never fall, Where enough is not the same it was before
|
|
Profil || Suche
|
002
11.03.2003, 20:04
scus
|
wo gibts denn dir template klasse?
--
sincères amitiés scus -- Tand, Tand ist das Gebilde von Menschenhand
|
|
Profil || Suche
|
003
11.03.2003, 20:29
theDon
|
/inc/functions.inc.php
<?php class Template { function Template($szTemplateName) { if( !file_exists($szTemplateName) ) { $this->Halt("unable to load template file: '" . $szTemplateName . "' does not exist."); } $this->szTemplateData = @implode('', (@file($szTemplateName))); $this->szTemplateData = str_replace('"', '"', $this->szTemplateData); }
function GetTemplate($szVarname = "") { if( $szVarname ) { return ('$' . $szVarname . ' .= "' . $this->szTemplateData . '";'); } else { return ('compress_page("' . $this->szTemplateData . '");'); } }
function Halt($szErrorMsg) { echo "<pre>Template error:\n " . $szErrorMsg . "</pre>"; exit; } } ?>
--
\o tanz den naziprau! o/
And more than ever, I hope to never fall, Where enough is not the same it was before
|
|
Profil || Suche
|