[SMARTY] Config variables in PHP-file - still no solution
| From: | Martin Voelkening | Date: | Wed, 26 Mar 2003 15:12:04 +0000 |
| Subject: | [SMARTY] Config variables in PHP-file - still no solution | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8916@lists.php.net to get a copy of this message | ||
Hi,
Sorry for trying again, but I am really stuck and I need your help.
Thanks. Here is the problem:
I have a problem to access variables from a config file in an
included php-file. The setup is as follows:
include_var_1.conf (1 is $customerID in this case):
---------------------------------------------------------------------
cus_longname = "Cyprus Company"
cus_shortname = "Cyrpus"
...
index.tpl:
--------------
{assign var=file value="include_var_%d.conf"|sprintf:$customerID}
{config_load file=$file scope="global"}
...
{include_php file="/.../www/include_searchaudio.inc"}
How can I access all the variables from the config file
'include_var_x.conf' in the included PHP file
'include_searchaudio.inc'? I tried several versions but nothing
worked. I would be grateful if you could tell me exactly in which
files what code belong.
Thanks for your help! It is really appreciated and would take me a
big step further...
Martin
----------------------------------------------------------------------
0700webhilfe.de
Martin Völkening - Geschäftsführer
http://www.0700webhilfe.de
mailto:martin@0700webhilfe.de
Max-Joseph-Str. 18 - 51429 Bergisch Gladbach
Fax 0700-WEBHILFE also 0700-93244533
---------------------------------------------------------------------
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php