accessing configs files from php
| From: | Peter Kmet | Date: | Tue, 09 Jul 2002 09:05:13 +0000 |
| Subject: | accessing configs files from php | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5236@lists.php.net to get a copy of this message | ||
Hello,
i have all my language strings in
configs/english.conf & japanese.conf
I wonder if there is a way to read
these strings from php script. Sometimes
it will be usefull to use it in php code too,
and i don't want to have 2 separate
language files
I know that i can use $smarty->_config[0]["vars"]
but i need to call $smarty->display() before it....
Thanks
Peter