Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

config_load problem

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
Tom Irish
Smarty Rookie


Joined: 23 Apr 2004
Posts: 9

PostPosted: Mon Aug 23, 2004 9:06 am    Post subject: config_load problem Reply with quote

Hallo,

wenn ich 2 config_load Anweisungen nacheinander durchführe dann habe ich im 2ten array die Daten der ersten config_load anweisung auch noch drinnen. Wie kann ich sowas vermeiden?

z.b.

[php:1:7be2dec00e]<?php
$smarty->config_load(file1.conf);
$file1 = $smarty->get_config_vars();

$smarty->config_load(file2.conf);
$file2 = $smarty->get_config_vars();
?>[/php:1:7be2dec00e]

Gruß Tom
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon Aug 23, 2004 9:24 am    Post subject: Re: config_load problem Reply with quote

Tom Irish wrote:
Wie kann ich sowas vermeiden?


mit clear_config().
http://smarty.php.net/manual/de/api.clear.config.php

gruß
messju
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tom Irish
Smarty Rookie


Joined: 23 Apr 2004
Posts: 9

PostPosted: Mon Aug 23, 2004 9:57 am    Post subject: Reply with quote

Danke
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP