Re: [SMARTY] Multiple Config Directories
| From: | Martin Mandl | Date: | Wed, 12 Mar 2003 11:15:47 +0000 |
| Subject: | Re: [SMARTY] Multiple Config Directories | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8569@lists.php.net to get a copy of this message | ||
I am using multiple config_dir to integrate different languages ... works quite well:
function mySmarty() {
$this->template_dir = 'templates/';
$this->compile_dir = 'templates_c/';
$this->config_dir = 'lang/' . $this->language . '/';
$this->cache_dir = 'cache/';
return $this->Smarty();
}