Re: [SMARTY-DEV] Monte: fetch() inherits configs
| From: | Monte Ohrt | Date: | Fri, 17 May 2002 00:23:56 +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-89@lists.php.net to get a copy of this message | ||
Yep I confirmed with Andrei, config vars are reset anytime fetch() or display() is called. If we want config vars to stick around between fetch() and display() calls, we could probably figure out a way to do so. Maybe a new paramter or new class variable. But, keep it backward compatible. I'm not sure if we want the scope=global to be any part of this control or not.
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