View Single Post
Old 08-02-2005, 03:28 PM   #1
ccondo
Green Mole
 
Join Date: Aug 2005
Posts: 3
Question Unable to render template file.

I was able to customize PHPdig to use the simple.html template and it works fine, but if I search again from the results page I get: Unable to render template file.

Any ideas?

This is the only change I have made to the config.php file:

// template file and style - checks to see that template is set to a valid value
if (isset($_REQUEST['template_demo'])) { $template_demo = $_REQUEST['template_demo']; }
$templates_array = array('black.html','bluegrey.html','corporate.html','green.html','grey.html ','lightgreen.html','linea
r.html','newspaper.html','phpdig.html','simple.html','terminal.html','yello w.html','gaagle.html');
if(isset($template_demo) && in_array($template_demo, $templates_array)) {
$template = "$relative_script_path/templates/simple.htm";
} else {
$template = "$relative_script_path/templates/simple.html";
}

Thanks for any help
ccondo is offline   Reply With Quote