RE: [SMARTY] smarty 2.1 does not work?

From: Date: Wed, 01 May 2002 19:17:56 +0000
Subject: RE: [SMARTY] smarty 2.1 does not work?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3967@lists.php.net to get a copy of this message
Yeah, it worked in 2.0.x - I'm now finding all the places in my scripts where I didn't set those vars ;(. I had a main smarty object where I set template_dir, compile_dir, etc., then I had various functions that created their own smarty objects but none of those set the vars. They all worked in 2.0.x (using relative filenames for templates). Can't remember if I read in the docs that the smarty object is reused - maybe that's why. Would just setting SMARTY_DIR cause all smarty objects to figure the dirs out if they're the default names? I tried a relative path - have to see if it works with an absolute one. Gerard > -----Original Message----- > From: Monte Ohrt [mailto:monte@ispi.net] > Sent: Wednesday, May 01, 2002 1:06 PM > To: G > Cc: smarty-general@lists.php.net > Subject: Re: [SMARTY] smarty 2.1 does not work? > > btw, try the CVS version, there was a bug fix with template resources, > it might have caused this too. I might have to issue a point release > fairly soon, or we might get lots of reports for this. > > There were some low level changes that could have caused this, such as > trusted_dir now respecting the include_path. So if you don't set the > template_dir to a value and call a template directly like > '/path/to/foo.tpl', it gives an error, and this worked prior to 2.1.0 ? > > Monte > > G wrote: > > In scripts where I didn't set template_dir, etc. 2.1.0 now > gives "unable to > > read template resource" errors. Not sure why it worked in > 2.0.x, anyhow I > > just set those vars now. > > > > Gerard > > > > > >>g wrote: > >> > >>>i downloaded the smarty 2.1 , i tried it.but the index.php > >> > >>outputed nothing. > >> > >>>then i turn to smarty 2.0.1 ,it works well .what is wrong ? it > >> > >>seems the smarty.class.php caused it. > >> > >>> > >>> > >>-- > >>Smarty General Mailing List (http://smarty.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > > > > > > > > > > -- > Monte Ohrt <monte@ispi.net> > Director of Technology, ispi Inc. > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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