|
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 |
smisonline2 Smarty Rookie
Joined: 12 Mar 2014 Posts: 7
|
Posted: Wed Mar 12, 2014 11:46 am Post subject: test.conf |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Mar 12, 2014 3:07 pm Post subject: |
|
|
do you have a template loading test.conf ? |
|
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
|