Hallo zusammen,
ich möchte eine Seite mit Templates machen.
Dazu habe ich eine datei tpl.tpl mit folgendem code:
eine datei tpl.php:
Und nun funtzt das nicht, bei meinem buch steht da vor dem $tpl = new HTML_TEMPLATE_IT(); noch require_once 'HTML/Template/IT.php'.
Muss ich das auch noch anfügen?
Muss ich die Datei noch erstellen?
ich möchte eine Seite mit Templates machen.
Dazu habe ich eine datei tpl.tpl mit folgendem code:
Code:
<html>
<head>
<title></title>
</head>
<body>
<h1>{TEXT}</h1>
</body>
</html>
PHP-Code:
<?php
$tpl = new HTML_TEMPLATE_IT();
$tpl->loadTemplatefile('tpl.tpl');
$tpl->setCurrentBlock();
$tpl->setVariable('TEXT', "Hier ist Der TEXT");
$tpl->parseCurrentBlock();
$tpl->show();
?>
Muss ich das auch noch anfügen?
Muss ich die Datei noch erstellen?

Kommentar