Re: [SMARTY] Curious missing output....

From: Date: Tue, 11 Mar 2003 12:06:18 +0000
Subject: Re: [SMARTY] Curious missing output....
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8550@lists.php.net to get a copy of this message
Btw, I should mention that it continued this behavior for 30 minutes... Thanks for the help ;-) John John Wells said: > Guys, > > I have a template called login.tpl that is simply this: > > <HTML> > <BODY> > TESTING! > </BODY> > </HTML> > > I had a problem tonight when I called a file called index.php > containing: > > <?php > > require 'Smarty.class.php'; > $smarty = new Smarty; > $smarty->compile_check = true; > $smarty->debugging = false; > > $smarty->display('login.tpl'); > ?> > > When I ran this script, I only receive a blank page...no "TESTING!". If > I copied the login.tpl to another file name (say, test.tpl) and changed > the line above to $smarty->display('test.tpl'), the script worked fine > and I saw TESTING! printed out. > > Now, I'm relatively new to Smarty so I know this has to be a stupid > error on my part. When I began typing this email, the login.tpl file > was still not working. However, I just reloaded it and it finally > worked. > > Is this something to do with the length of time I'm caching the files? > I blew away all files in the templates_c directory but still got a blank > file. > > I know you may not be able to explain what happened, but I'd sure > appreciate suggestions on what to examine. > > Thanks! > John > > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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