Re: [SMARTY-DEV] Monte: fetch() inherits configs

From: Date: Fri, 17 May 2002 14:09:39 +0000
Subject: Re: [SMARTY-DEV] Monte: fetch() inherits configs
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-90@lists.php.net to get a copy of this message
This would mean that if you do two display() or fetch() calls in a row, the second one will inherit the config variables from the first one. Unless we have something like clear_config_vars() API call. On Fri, 17 May 2002, Norbert Röcher wrote: > Since I can't see a reason against this change, how about implementing > this to smarty.class.php: > > In function fetch() change > > ----------snipp--------------- > /* Initialize config array. */ > $this->_config = array(array('vars' => array(), > ----------snipp--------------- > > to this > > ----------snipp--------------- > /* Initialize config array. */ > if (!isset ($this->_config)){ > $this->_config = array(array('vars' => array(), > 'files' => array())); > } > ----------snipp--------------- > > Would be great. Man i'm so damn happy to have this problem solved. > :-)) Once again a big THANK YOU! > > Regards, > Norbert > > > > > -- > Smarty Development Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -Andrei http://www.gravitonic.com/ "Claiming Java is easier than C++ is like saying that K2 is shorter than Everest." -- Larry O'Brien (editor, Software Development)

« previous php.smarty.dev (#90) next »