Newbie question

From: Date: Tue, 13 Mar 2001 16:09:13 +0000
Subject: Newbie question
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-386@lists.php.net to get a copy of this message
Hi, I just tried to install the templates and followed the instructions verbatim, but I get the following error when trying to the the header and footer example in the QUICKSTART guide: Fatal error: Call to undefined function: get_defined_vars() in /home/www/web/h/templates_c/index.tpl.php on line 9 Here's the example that I used (from the quickstart file): --------- index.php -------- <?php require("Smarty.class.php"); $smarty = new Smarty; $smarty->assign("Name","Ned"); $smarty->assign(array( "FirstName" => "Ned", "LastName" => "Flanders", "Address" => "Springfield" )); $zipcode = "55555"; $smarty->assign("Zipcode",$zipcode); $smarty->display("index.tpl"); ?> --------- templates/index.tpl -------- {include file="header.tpl" title="Home Page"} Hello, {$Name}!<br> {$FirstName}, {$LastName}<br> {$Address}, {$Zipcode} {include file="footer.tpl"} --------- templates/header.tpl -------- <HTML> <TITLE>{$title|default:"no title"}</TITLE> <BODY> --------- templates/footer.tpl -------- </BODY> </HTML> ----------- Did I miss something? TIA! Clayton Dukes CCNA, CCDA, CCDP, CCNP

Attachment: [text/x-vcard] Clayton Dukes.vcf
« previous php.smarty.general (#386) next »