|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jayrod84 Smarty n00b
Joined: 20 Jun 2003 Posts: 4
|
Posted: Fri Jun 20, 2003 4:54 pm Post subject: errors rain from the sky |
|
|
Well here is my code
Code: | <?php
define('SMARTY_DIR','/usr/local/apache/htdocs/my_frame/Smarty/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;
$smarty->caching = false;
$smarty->use_sub_dirs=false;
$smarty->template_dir = '/usr/local/apache/htdocs/smarty_user/template';
$smarty->config_dir = '/usr/local/apache/htdocs/smarty_user/config';
$smarty->compile_dir = '/usr/local/apache/htdocs/smarty_user/template_c';
// assign some content
$smarty->assign('name', 'george smith');
$smarty->assign('address', '45th & Harris');
// display it
$smarty->display('/usr/local/apache/htdocs/smarty_user/template/index.tpl');
?>
|
here's my set of errors
Quote: |
Warning: Smarty error: problem writing temporary file '//3ef33d3e63640' in /usr/local/apache/htdocs/my_frame/Smarty/Smarty.class.php on line 1042
Warning: touch() [function.touch]: Unable to create file /^usr^local^apache^htdocs^smarty_user^template^index.tpl because Permission denied in /usr/local/apache/htdocs/my_frame/Smarty/Smarty.class.php on line 1575
Warning: fetch(/^usr^local^apache^htdocs^smarty_user^template^index.tpl) [function.fetch]: failed to create stream: No such file or directory in /usr/local/apache/htdocs/my_frame/Smarty/Smarty.class.php on line 1158
Warning: fetch() [function.fetch]: Failed opening '/^usr^local^apache^htdocs^smarty_user^template^index.tpl' for inclusion (include_path='.:/php/includes:/usr/local/apache/php') in /usr/local/apache/htdocs/my_frame/Smarty/Smarty.class.php on line 1158
|
I've read through all of the old topics and nothing is seeming to work for me.
Ich habe keine idea |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Jun 20, 2003 5:14 pm Post subject: |
|
|
maybe your compile dir is called "templates_c" as in the demo of the distribution and not "template_c" as in your example. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Jun 20, 2003 5:16 pm Post subject: |
|
|
... and you only have to $smarty->display("index.tpl") (relative to your template_dir) and not the full path. if you use a full path to a template you have to do $smarty->display("file:/usr/local...) (note prepend "file:" as the resource-type) |
|
Back to top |
|
jayrod84 Smarty n00b
Joined: 20 Jun 2003 Posts: 4
|
Posted: Fri Jun 20, 2003 6:39 pm Post subject: |
|
|
danke,
das sein problem. Vielen danken |
|
Back to top |
|
|
|
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
|