Smarty Installation

Status
Not open for further replies.

jaybe

New Member
Messages
3
Reaction score
0
Points
0
Hello all.
I used smarty on my local machine and it was ok. i installed it on Linux and Windows but can't do it here.
is this code ok?
<?
require('smarty/libs/Smarty.class.php');
$smarty = new Smarty();
$smarty->template_dir = '\public_html\smarty\mine\templates';
$smarty->compile_dir = '\public_html\smarty\templates_c';
$smarty->config_dir = '\public_html\smarty\configs';
$smarty->cache_dir = '\public_html\smarty\cache';
?>
I have an error "Warning: Smarty error: unable to read resource: "base.tpl" in /home/jaybe/public_html/smarty/libs/Smarty.class.php on line 1092"
What should i do?
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Try this.

PHP:
<?
require('smarty/libs/Smarty.class.php');
$smarty = new Smarty();
$smarty->template_dir = '/home/jaybe/public_html/smarty/mine/templates';
$smarty->compile_dir = '/home/jaybe/public_html/smarty/templates_c';
$smarty->config_dir = '/home/jaybe/public_html/smarty/configs';
$smarty->cache_dir = '/home/jaybe/public_html/smarty/cache';
?>
 
Last edited:

jaybe

New Member
Messages
3
Reaction score
0
Points
0
It works! Thanks can you describe why it ddin't work if it were other paths to directory (sure paths was corret to dirs)
 
Last edited:

TonnyORG

I Code Things
Community Support
Messages
5,907
Reaction score
16
Points
38
This thread was closed for inactivity, if you contune whit doubts/problems, you can re-open this thread or create a new one :)


Thread Closed
 
Status
Not open for further replies.
Top