Re[2]: [SMARTY] template and dir
| From: | Elgi | Date: | Fri, 21 Mar 2003 17:47:39 +0000 |
| Subject: | Re[2]: [SMARTY] template and dir | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8823@lists.php.net to get a copy of this message | ||
Bonjour Monte,
Thanks, i don't think this ;))
Elgi
Le vendredi 21 mars 2003 à 18:44:45, vous écriviez :
MO> You must set your smarty configs _before_ using is_cached(), otherwise
MO> it doesn't know where to find them.
MO> $smarty->template_dir = '../templates/';
MO> $smarty->compile_dir = '../templates_c/';
MO> $smarty->config_dir = '../conf/';
MO> $smarty->cache_dir = '../cache/';
MO> $smarty->plugins_dir = array('../plugins');
MO> if(!$smarty->is_cached('fr/index.tpl')) {
MO> $smarty->config_load('smarty.conf');
MO> ...
MO> }
MO> Monte