Config
| From: | Nino Katic | Date: | Sun, 17 Nov 2002 22:45:26 +0000 |
| Subject: | Config | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6464@lists.php.net to get a copy of this message | ||
Hi,
Is it possible to load some options from config file using some sort of
variable way to access it? I have something like this...
myconf.conf
[menu]
option1 = 'Some option 1'
option2 = 'Some option 2'
option3 = 'Some option 3'
option4 = 'Some option 4'
option5 = 'Some option 5'
and in template i have one foreach loop that draws me some <tr> and <td> in
which i want to load those options. So, that would look like
{#option$counter#} but that's not supported in smarty. Is there a way to
handle this? Regards.
Nino