kazuki Smarty n00b
Joined: 05 Mar 2004 Posts: 3
|
Posted: Mon Mar 08, 2004 9:56 pm Post subject: Help on newbie - Demo not working |
|
|
I'm new to smarty, I need some help. I'm using Apache in Windows, I
have downloaded the software. I try to run the demo, but I got this error:
Code: |
Fatal error: Smarty error: the $compile_dir 'templates_c' does not exist, or is not a directory. in c:\program files\easyphp\www\smarty\libs\Smarty.class.php on line 1102
|
I can't seem to to find the "templates_c" directory, Am I missing something here? I believe that the paths are correct.
This demo here
[php:1:fb446e5ac4]
<?php
require '../libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->compile_check = true;
$smarty->debugging = true;
$smarty->assign("Name","Fred Irving Johnathan Bradley Peppergill");
$smarty->assign("FirstName",array("John","Mary","James","Henry"));
$smarty->assign("LastName",array("Doe","Smith","Johnson","Case"));
$smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"),
array("I", "J", "K", "L"), array("M", "N", "O", "P")));
$smarty->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"),
array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234")));
$smarty->assign("option_values", array("NY","NE","KS","IA","OK","TX"));
$smarty->assign("option_output", array("New York","Nebraska","Kansas","Iowa","Oklahoma","Texas"));
$smarty->assign("option_selected", "NE");
$smarty->display('index.tpl');
?>
[/php:1:fb446e5ac4]
Thanks |
|