Ich versuche schon lange etwas mit Smarty umzusetzten... Ich bekomme aber immer:
Der Code sieht ca. so aus:
Was mache ich falsch?
Fatal error: Cannot redeclare class smarty in /home/www/web2/html/*******/libs/Smarty.class.php on line 65
PHP:
if($user != "" && $pw != "")
{
require './libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->assign("test",$test);
$smarty->assign('page', 'stat.tpl');
$smarty->display('index.tpl');
}