Re: RE: RE: [SMARTY] php variable within include
| From: | Rasmus Schultz | Date: | Sun, 08 Dec 2002 22:01:53 +0000 |
| Subject: | Re: RE: RE: [SMARTY] php variable within include | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6700@lists.php.net to get a copy of this message | ||
>Weird, I can make it work like:
>
>{include file = "$style.css"} and {include file = $style.".css"}
the latter didn't work for me previously, so I just
stopped doing it - I suppose I may have been using an
older version, that may have had a bug ... consequently
I just don't even try to do it anymore - in fact, I've
had to bypass this error on occassion, by passing the
concatenated string from PHP, rather than concatenate
it in smarty ...
>but not like
>
>{include file=$style.css}
that of course will not work, because there's nothing
that tells the parser that ".css" is a string - you
need the quotation marks for that. You wouldn't get
away with that in PHP either :)