|
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 |
mOsEz Smarty n00b
Joined: 05 Aug 2003 Posts: 4 Location: Geesthacht, Germany
|
Posted: Thu Aug 07, 2003 3:13 pm Post subject: installed smarty and it doesnt work... |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Aug 07, 2003 3:22 pm Post subject: |
|
|
All I see is "Hallo Ned!", looks good to me or you fixed it already? |
|
Back to top |
|
mOsEz Smarty n00b
Joined: 05 Aug 2003 Posts: 4 Location: Geesthacht, Germany
|
Posted: Fri Aug 08, 2003 3:11 pm Post subject: |
|
|
yes... now i have fixed it...
the pathgs were wrong _________________ greetz mOsEz |
|
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
|