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

installed smarty and it doesnt work...

 
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
mOsEz
Smarty n00b


Joined: 05 Aug 2003
Posts: 4
Location: Geesthacht, Germany

PostPosted: Thu Aug 07, 2003 3:13 pm    Post subject: installed smarty and it doesnt work... Reply with quote

i am new in smarty and i need help!

the warning:
Code:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/%%117/%%1172603085/index.tpl.php) is not within the allowed path(s): (/www/htdocs/v081952/) in /www/htdocs/v081952/libs/Smarty.class.php on line 1520

Warning: Smarty error: unable to read template resource: "index.tpl" in /www/htdocs/v081952/libs/Smarty.class.php on line 1042


my index.php:
path: /www/htdocs/v081952/libs/test/index.php
Code:
<?php
require('/www/htdocs/v081952/libs/Smarty.class.php');

$smarty = new Smarty;

$smarty->template_dir = ('/www/htdocs/v081952/libs/test/templates/');
$smarty->compile_dir = ('/www/htdocs/v081952/libs/test/templates_c/');
$smarty->config_dir = ('/www/htdocs/v081952/libs/test/configs/');
$smarty->cache_dir = ('/www/htdocs/v081952/libs/test/cache/');

$smarty->assign('name','Ned');

$smarty->display('index.tpl');
?>


my index.tpl:
path: /www/htdocs/v081952/libs/test/templates/index.tpl
Code:
{* Smarty *}

Hallo, {$name}!


i has set the chmod for every file to 777 and it still doesnt work...

i dont know what to do... but i need a template engine cause my planed page is too large...

you can see the warning on http://www.mosez.net/test
_________________
greetz mOsEz
Back to top
View user's profile Send private message Visit poster's website
mohrt
Administrator


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

PostPosted: Thu Aug 07, 2003 3:22 pm    Post subject: Reply with quote

All I see is "Hallo Ned!", looks good to me or you fixed it already?
Back to top
View user's profile Send private message Visit poster's website
mOsEz
Smarty n00b


Joined: 05 Aug 2003
Posts: 4
Location: Geesthacht, Germany

PostPosted: Fri Aug 08, 2003 3:11 pm    Post subject: Reply with quote

yes... now i have fixed it...

the pathgs were wrong
_________________
greetz mOsEz
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