Re: Bug in "include file" ?

From: Date: Mon, 19 Feb 2001 15:15:26 +0000
Subject: Re: Bug in "include file" ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-145@lists.php.net to get a copy of this message
On Sat, 17 Feb 2001, Victor wrote: > Hi everbody, > > In my php-file, I have this line (among many more) > $smarty->assign("IncludeFile", "index.tpl"); > > And in my main template (main.tpl) I have this line: > {include file=$IncludeFile} > > and $IncludeFile then should be replaced at runtime w/ "index.tpl". But when > it's compiled, smarty generates this line instead: > > <?php include "./templ_c/.php"; ?> > > and of course, *that* doesn't work. Is it a bug or have I only made a mistake? Try doing: {include file="$IncludeFile"} -Andrei Complexity in the mind is not caused by learning; learning is caused by complexity in the mind. -- Steven Pinker

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