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

template's directory problem

 
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 -> General
View previous topic :: View next topic  
Author Message
mikefn
Smarty n00b


Joined: 16 Jul 2003
Posts: 1

PostPosted: Thu Jul 17, 2003 12:04 am    Post subject: template's directory problem Reply with quote

Hi all,

I got these error messages.
Here's what I did. I unpacked smarty. I created demo/index.php.
I created templates and templates_c directories.
I also created footer.tpl, header.tpl and index.tpl.
Here's my index.php
<?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');

?>
~

Warning: Smarty error: problem creating directory "templates_c/%%117/%%1172603085" in /devsite/mikefn/Smarty-2.5.0/libs/Smarty.class.php on line 1042

Warning: Smarty error: problem writing temporary file 'templates_c/%%117/%%1172603085/3f15dcbc9ad5e' in /devsite/mikefn/Smarty-2.5.0/libs/Smarty.class.php on line 1042

Warning: unable to create file templates_c/%%117/%%1172603085/index.tpl.php because No such file or directory in /devsite/mikefn/Smarty-2.5.0/libs/Smarty.class.php on line 1575

Warning: Failed opening 'templates_c/%%117/%%1172603085/index.tpl.php' for inclusion (include_path='.:/usr/local/lib/php') in /devsite/mikefn/Smarty-2.5.0/libs/Smarty.class.php on line 1158

Warning: Smarty error: problem creating directory "templates_c/%%-40/%%-402416939" in /devsite/mikefn/Smarty-2.5.0/libs/Smarty.class.php on line 1042

Warning: Smarty error: problem writing temporary file 'templates_c/%%-40/%%-402416939/3f15dcbca97be' in /devsite/mikefn/Smarty-2.5.0/libs/Smarty.class.php on line 1042

Warning: unable to create file templates_c/%%-40/%%-402416939/debug.tpl.php because No such file or directory in /devsite/mikefn/Smarty-2.5.0/libs/Smarty.class.php on line 1575

Warning: Failed opening 'templates_c/%%-40/%%-402416939/debug.tpl.php' for inclusion (include_path='.:/usr/local/lib/php') in /devsite/mikefn/Smarty-2.5.0/libs/Smarty.class.php on line 1258


Anyone could help me please?
Thanks.
_________________
Mike FN
Back to top
View user's profile Send private message MSN Messenger
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu Jul 17, 2003 12:57 am    Post subject: Reply with quote

http://www.phpinsider.com/smarty-forum/viewtopic.php?t=191
Back to top
View user's profile Send private message
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 -> General 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