Re: [SMARTY] config_load

From: Date: Fri, 31 Jan 2003 22:15:06 +0000
Subject: Re: [SMARTY] config_load
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7447@lists.php.net to get a copy of this message
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@ecst.csuchico.edu > > If the #2 pencil is the most popular, why is it still #2? > -George Carlin > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.general (#7447) next »