RE: Config directives in Smarty.class.php
| From: | Andrei Zmievski | Date: | Sat, 23 Jun 2001 15:03:17 +0000 |
| Subject: | RE: Config directives in Smarty.class.php | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-960@lists.php.net to get a copy of this message | ||
On Sat, 23 Jun 2001, Ralph Meijer wrote:
> Right, that's because the config_dir value you use is the current directory,
> which always exist. If I try another value, outside my webtree, when calling
> the compiler class (which is a subclass of Smarty) the constructor of
> Smarty tries to create a Config_File object (to be stored in
> $this->_conf_obj).
>
> However, since the constructor is called before any variables can be
> changed, it uses the default './configs', which in my case doesn't exist
> and generates an error.
In Smarty 1.4.3 the _conf_obj->config_path is changed in every display()
call.
-Andrei
* It's an emergent property of human minds to create. *