config file problems

From: Date: Mon, 19 Feb 2001 12:44:55 +0000
Subject: config file problems
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-142@lists.php.net to get a copy of this message
Any ideas, anyone? I've tinkered with it all day, yesterday, with no success. I really appreciate the help. -Jason ----- Original Message ----- From: "Jason Alexander" <j-l-alexander@home.com> To: <smarty@lists.ispi.net> Sent: Sunday, February 18, 2001 5:12 PM Subject: [smarty] config file problems > 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: > > ---<BR> > You are currently subscribed to smarty as: j-l-alexander@home.com<BR> > To unsubscribe send a blank email to $subst('Email.Unsub')<BR> > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ > </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> > > > ---<BR> > You are currently subscribed to smarty as: j-l-alexander@home.com<BR> > To unsubscribe send a blank email to $subst('Email.Unsub')<BR> > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ > </BODY> > </HTML> > > > Any ideas what could be going on here? Am I doing something wrong? > > > TIA, > -Jason > >

« previous php.smarty.general (#142) next »