logo       

Re: [SMARTY] config_load: msg#00471

php.smarty.general

Subject: Re: [SMARTY] config_load

This functionality is not available in 2.3.1, only in CVS.

In 2.3.1, you have to do it manually.

http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions

(under Q: Is it possible to access Smarty config files directly from PHP
scripts?)

Monte


On Fri, 2003-01-31 at 15:53, Jason M. Yonan wrote:
> Hello all!
>
> I am new to Smarty and have a question about how to load a config file
> from a smarty object. The docs seems to point that you can do the
> following, but this doesn't seem to be possible with version 2.3.1.
>
> $smarty = new Smarty;
> $smarty->config_load("my.conf");
>
> The latest cvs seems to include this function, but the 2.3.1 version only
> has a private function _config_load(). What is the preferred way to load a
> config file in the latest stable version? Sorry if I am missing something
> obvious.
>
> Jason
>
>
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
> This email was written by Jason M. Yonan jmy@xxxxxxxxxxxxxxxxx
>
> If the #2 pencil is the most popular, why is it still #2?
> -George Carlin
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
--
Monte Ohrt <monte@xxxxxxxx>


--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise