config file problems
| From: | Jason Alexander | Date: | Sun, 18 Feb 2001 23:12:33 +0000 |
| Subject: | config file problems | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-140@lists.php.net to get a copy of this message | ||
Hello all,
I'm having issues getting my config file to read for some reason.
When I attempt to run it, I get the error:
PEAR constructor called, class=config_file Config_File:
And, it's as if my conf file was never imported.
I've created these files:
test.php
templates/test.tpl
templates/header.tpl
templates/footer.tpl
configs/system.conf
test.php:
<?php
require("system.inc.php");
$smarty = new Smarty;
$smarty->assign("something", "gibitz");
$smarty->display("test.tpl");
?>
test.tpl:
{config_load file=system.conf section="general"}
{include file=header.tpl}
<b>This is a test. This is only a test.</b><br>
<br>
Though, it may be a {$something}.<br>
{include file=footer.tpl}
header.tpl:
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<HTML>
<TITLE>{$sitename}</TITLE>
<BODY>
footer.tpl:
</BODY>
</HTML>
system.conf:
[general]
sitename = Deallocation.org
And, view source actually gives me this:
PEAR constructor called, class=config_file
Config_File:
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<HTML>
<TITLE></TITLE>
<BODY>
<b>This is a test. This is only a test.</b><br>
<br>
Though, it may be a gibitz.<br>
</BODY>
</HTML>
Any ideas what could be going on here? Am I doing something wrong?
TIA,
-Jason