<?php
/*
 * Created on 16.12.2005
 *
 * Fortgeschrittene Programmierung fuer das Internet
 * 
 * Variablen in Smarty
 */
 
require 'Smarty.class.php';

$smarty = new Smarty;
$smarty->template_dir="D:\\www\\webst2\\smarty\\templates";

$smarty->assign("debugging", "true");
$smarty->assign("debug_tpl", "C:\\Programme\\php5\\PEAR\\Smarty-2.6.11\\libs");

$smarty->assign("lokaleVariable","drei");
$smarty->assign("anArray",array(0,1,2,"drei"));
$smarty->assign("aHash",array("eins" => 1, "zwei" => "zwei", "drei" => "zweiundvierzig"));

$smarty->display('debugging.tpl');
 
?>