Re: [SMARTY] Set config file from php?
| From: | Ivan Voras | Date: | Thu, 09 May 2002 16:37:14 +0000 |
| Subject: | Re: [SMARTY] Set config file from php? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4129@lists.php.net to get a copy of this message | ||
| > | Why? I would think that this is a benefit. this lets the template
| >
| > that is exactly what I am trying to avoid! I do not want to load config
| > files from within templates!
| But anyways, you can accomplish what you want by using the
| Config_File.class.php directly. Load the config file and assign it to
| your template.
|
| $conf = new Config_File('./configs');
Thank you! I think this is what I was looking for!
--
----
--------
- Ivan Voras <ivoras @ fer.hr> -
- I modem, but they grew back. -