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

test.conf

 
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
smisonline2
Smarty Rookie


Joined: 12 Mar 2014
Posts: 7

PostPosted: Wed Mar 12, 2014 11:46 am    Post subject: test.conf Reply with quote

Hello,

i try thsi code from an exampel page


Code:
$smarty = new Smarty;
$smarty->setTemplateDir(LOCAL_SMARTY_TEMPLATE);
$smarty->setCompileDir(LOCAL_SMARTY_TEMPLATE_C);
$smarty->setConfigDir(LOCAL_SMARTY_CONFIGS);
$smarty->setCacheDir(LOCAL_SMARTY_CACHE);

$smarty->assign('name','Ned');
$smarty->display('index.tpl');


but i get always the message


Fatal error: Uncaught --> Smarty: Unable to read config file 'test.conf' <-- thrown in /home/....

Why i need thsi file? Why it is called test.config and not smarty.config or something elese?!
Back to top
View user's profile Send private message
mohrt
Administrator


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

PostPosted: Wed Mar 12, 2014 3:07 pm    Post subject: Reply with quote

do you have a template loading test.conf ?
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