|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ksanuk Smarty n00b
Joined: 05 Oct 2003 Posts: 1 Location: Bangkok - Thailand
|
Posted: Sun Oct 05, 2003 4:42 am Post subject: Config file working only once |
|
|
Hi,
I'm a total newbie with this and am just trying to build my first template, so please be gentle
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 |
|
|
|
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
|