Re: [SMARTY] unable to read template

From: Date: Fri, 21 Mar 2003 16:52:51 +0000
Subject: Re: [SMARTY] unable to read template
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8816@lists.php.net to get a copy of this message
If you know the relative path, then do this: require('../smarty/Smarty.class.php'); Smarty will figure out SMARTY_DIR on its own from there. Otherwise, SMARTY_DIR needs to be an absolute path. define('SMARTY_DIR', '/absolute/path/to/smarty/dir/'); require(SMARTY_DIR . 'Smarty.class.php'); Monte On Fri, 2003-03-21 at 10:17, Elgi wrote: > Bonjour smarty-general, > > I have a dir "fr" with index.php > and in "templates/fr" => index.tpl > > fr/index.php : > define('SMARTY_DIR','smarty/'); > @require('../'.SMARTY_DIR.'Smarty.class.php'); > $smarty = new Smarty; > $smarty->display('fr/index.tpl'); > > Smarty say "unable to read template", why ? > -- > Cordialement, > Elgi -- Monte Ohrt <monte@ispi.net>

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