Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Help on newbie - Demo not working

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
kazuki
Smarty n00b


Joined: 05 Mar 2004
Posts: 3

PostPosted: Mon Mar 08, 2004 9:56 pm    Post subject: Help on newbie - Demo not working Reply with quote

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
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon Mar 08, 2004 10:42 pm    Post subject: Reply with quote

is there a templates_c directory in the current directory? If not, create one that apache can write to.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP