Curious missing output....

From: Date: Tue, 11 Mar 2003 05:46:42 +0000
Subject: Curious missing output....
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8544@lists.php.net to get a copy of this message
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

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