SOLVED: error in the template file
I have a Smarty setup:
require_once 'smarty/Smarty.class.php';
$smarty = new Smarty();
$smarty->compile_dir = $compile_dir;
$smarty->template_dir = $tpl_dir;
That's all I need now ... I have a Smarty setup just like on another site, and it works fine on a single server.
var_dump($smarty)displays all its public variables, and $smarty->template_exists("index.tpl")returns 1, which indicates that Smarty is correctly configured and working, but it $smarty->display("index.tpl")also $output = $smarty->fetch("index.tpl"); echo $output;displays a blank page. And the index.tpl file certainly contains HTML.
I forgot some step or what?
Edit:
Added
ini_set('display_errors', true);
error_reporting(E_ALL + E_NOTICE);
A configuration directory for Smarty has also been created.
And I tried it $output = $smarty->fetch("index.tpl"); var_dump($output).
Still blank page.
If I am echo "foo";before $smarty->display("index.tpl"), it prints a string, but if I do it after it, it does not print it.