Re: [SMARTY] Problem with Variables in Config-File
| From: | Monte Ohrt | Date: | Thu, 20 Mar 2003 19:28:57 +0000 |
| Subject: | Re: [SMARTY] Problem with Variables in Config-File | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8790@lists.php.net to get a copy of this message | ||
You should use a file path relative to $config_dir, try that first.
(php file)
$smarty->config_dir = '/home/pages/sds_server_com/www/';
....
(tpl file)
{config_load file="include_var.conf"}
....
On Thu, 2003-03-20 at 13:13, Martin Völkening - 0700webhilfe.de wrote:
> Hi,
>
> I included the following file at the beginning of the template:
>
> {config_load file="/home/pages/sds_server_com/www/include_var.conf"
> scope="global"}
>
> Later on I want to use the variables in the file so I include:
>
> {#db_name#}
>
> But nothing shows up. I have declared:
>
> db_name = "sds_cyprus" in the config-file which exists in the
> directory.
>
> In can't seem to use my variables in the template file!!!
>
> What's wrong???
>
> Thanks
>
> Martin
> =============================================
> Martin Völkening - Geschäftsführer
> 0700webhilfe.de
> Max-Joseph-Str. 18 - D-51429 Bergisch Gladbach
> Telefon +49 700 93244533 - Fax +49 700 93244533
> mailto:info@0700webhilfe.de -
> http://www.0700webhilfe.de
--
Monte Ohrt <monte@ispi.net>