|
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 |
genie_ru Smarty n00b
Joined: 15 Apr 2004 Posts: 4 Location: Russia
|
Posted: Thu Dec 23, 2004 1:31 am Post subject: |
|
|
same errors on Smarty: 2.5.0. I have just installed Smarty and it gives me a blank page so I inluded this code:
<?php
error_reporting(E_ALL);
require 'smarty/libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->display('index.tpl');
echo $smarty->cache_lifetime;
?>
$smarty->cache_lifetime gives a page with "3600", so Smarty works!!! But why it doesn't want to parse templates? All directories set CHMOD 777.
I have installed Smarty many times on my local computer and had no problems. Now I tried to do this at ISP and it failed. |
|
Back to top |
|
genie_ru Smarty n00b
Joined: 15 Apr 2004 Posts: 4 Location: Russia
|
Posted: Thu Dec 23, 2004 10:41 am Post subject: |
|
|
I have solved my problem. I added this code to .htaccess:
<IfModule mod_php4.c>
php_value display_errors On
</IfModule>
and it told me that $compile_dir was not defined properly. |
|
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
|