Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Config file working only once

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
ksanuk
Smarty n00b


Joined: 05 Oct 2003
Posts: 1
Location: Bangkok - Thailand

PostPosted: Sun Oct 05, 2003 4:42 am    Post subject: Config file working only once Reply with quote

Hi,

I'm a total newbie with this and am just trying to build my first template, so please be gentle Smile

I have basically modified the demo template a bit. My main template is like this:
Code:

{config_load file=diary.conf}
{include file="myheader.tpl"}

<center><h2>{$title}</h2></center>

<p>
{$EntryDate}

<p>
{fetch file="020130.txt"}

{include file="footer.tpl"}


The config file contains only 2 lines:
Code:

SiteName = "Nanaplaza.Com"
title = "Diary of (a) John"


When I run this it works, but only once. Reloading gives me the error:
Parse error: parse error in C:\apache\htdocs\smarty\templates_c\%%-17\%%-1717782039\diary.conf.php on line 1

Even stranger is that if I make a small change in the config file and save it again, the template works. Again, only once.

I am sure this is likely something small, but I cannot figure it out.
Help would be much appreciated.

Sanuk!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP