I'm confused !
| From: | Pablo Veliz | Date: | Mon, 27 Aug 2001 16:12:10 +0000 |
| Subject: | I'm confused ! | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1392@lists.php.net to get a copy of this message | ||
I have this code that used to work yesterday
--- configs/xeon.conf (-rw-rw-rw-) ---
titulo = Prototipo XeoN
ancho = 500
[page]
bgcolor=#FFFFFF
fgcolor=#000000
cssfile=estilo.css
--------------------------------------
-- test.php (-rw-r--r--) -------------
<?
require("Smarty.class.php");
$smarty = new Smarty;
$smarty->display("head.tpl.html");
?>
-----------------------------------
-- head.tpl.html (-rw-r--r--) -----
{config_load file="xeon.conf" section="page"}
<html>
<head>
<title>{#titulo# | default "proyecto Xeon"}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="{#cssfile# | default "estilo.css"}"
type="text/css">
</head>
<body bgcolor="{#bgcolor# | default "#FFFFFF"}" text="{#fgcolor# |
default "#000000"}">
-----------------------------------
An now I get this error:
Fatal error: Smarty: [in head.tpl.html line 1]: syntax error: invalid attribute name -
'xeon.conf\' in Smarty_Compiler.class.php on line 925
I get this even with the include stament! Whats wrong? Any clues?
I will test this on another machine and let you know!
I use Mandrake 8.0 + php-4.0.4pl1-6mdk + apache-1.3.19-3mdk
--
Pablo Veliz