php & template
Hallo Leute!
Ich habe mir jetzt templates zu Gemüte geführt...
wollte jetzt selber etwas ausprobieren:
<?
include('../~/smarty/Smarty.class.php');
$name="Vorname Nachname";
echo $na;
$smarty = Blabla;
$smarty->assign('name', $name);
$smarty->display('smarty_test.tpl');
?>
Jetzt schreibt er mir einen Error an:
Fatal error: Call to a member function assign() on a non-object in
D:\Server\Xampp\xampp\htdocs\~\start.php on line 7
Was mache ich da falsch ??
Danke im vorraus!
lg mtrax
|