Kann mir einer nen schnipsel liefern der mir zeigt wie ich eine funktion in ein Template bekomme die etwas ausgibt?
Mfg Jan
Mfg Jan
<?php
$smarty = new smarty;
$smarty->assign('dein_path','template/xy'); // templateverzeichnis
PHP Funktion
$smarty->assign('DEINE_VARIABLE', PHP Funktion); // die Variable bindest du im Template ein
?>
<?
$smarty->assign("content",vote("1","umfrage","?"));
$smarty->display("vote_layer.tpl");
?>
Kommentar