Re: [SMARTY] $smarty->get_config_vars('foo'); doesn't work
| From: | messju mohr | Date: | Sat, 15 Mar 2003 06:40:42 +0000 |
| Subject: | Re: [SMARTY] $smarty->get_config_vars('foo'); doesn't work | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8668@lists.php.net to get a copy of this message | ||
On Sat, Mar 15, 2003 at 12:17:28AM -0500, Ilir wrote:
> Hi there,
>
>
> I want to get a specific config variable in a script but it can't find it.
> This is the error I get:
>
> Fatal error: Call to undefined function: get_config_vars() in
> /home/virtual/site82/fst/var/www/html/site/index.php on line 35
>
> This is how I'm calling it:
>
> $smarty->config_load(CONFIG_DIR.'site.conf');
> $tmpTitle = $smarty->get_config_vars('pageTitle');
>
> Am I missing something here??? I've tried to figure out the problem for the
> last 2 hours but my brain is clogged up. Would someone please help me?
> Thanks :)
maybe your smarty is too old. get_config_vars() was added in 2.5.0-RC1
greetings
messju
> Ilir.