Mailinglisten-Archive | 
Hat jemand eine Idee, warum die Übergabe des Template-Objekts an eine
Funktion nicht funktioniert?
Danke
Bertram
test.php
<?
include("class.TemplatePower.inc.php");
$tpl = new TemplatePower( "_test.htm" );
$tpl->prepare();
test ($tpl);
$tpl->printToScreen();
function test($tpl) {
$tpl->newBlock("test");
$tpl->assign("test", "This is a test");
}
?>
_test.htm
<html>
<head>
<title>test tp</title>
</head>
<body>
<!-- START BLOCK : test -->
{test}
<!-- END BLOCK : test -->
</body>
</html>
----
- Agentur Simon, Bertram Simon, Viehhofstr. 116, 42117 Wuppertal
- Anfahrt: http://mail.map24.com/agentur.simon
- Telefon: 0202-370 32 08, Telefax: 0202-370 32 09
- EMail: info_(at)_agentur-simon.de, Homepage: http://www.agentur-simon.de
----
    php::bar PHP Wiki - Listenarchive